Revision: 4543
          http://skim-app.svn.sourceforge.net/skim-app/?rev=4543&view=rev
Author:   hofman
Date:     2008-09-04 12:43:46 +0000 (Thu, 04 Sep 2008)

Log Message:
-----------
rename synchronizer methods

Modified Paths:
--------------
    trunk/SKPDFSynchronizer.m

Modified: trunk/SKPDFSynchronizer.m
===================================================================
--- trunk/SKPDFSynchronizer.m   2008-09-04 12:21:39 UTC (rev 4542)
+++ trunk/SKPDFSynchronizer.m   2008-09-04 12:43:46 UTC (rev 4543)
@@ -339,7 +339,7 @@
 
 #pragma mark || PDFSync
 
-- (BOOL)parsePdfsyncFile:(NSString *)theFileName {
+- (BOOL)loadPdfsyncFile:(NSString *)theFileName {
 
     if (pages)
         [pages removeAllObjects];
@@ -569,7 +569,7 @@
 
 #pragma mark || SyncTeX
 
-- (BOOL)parseSynctexFile:(NSString *)theFileName {
+- (BOOL)loadSynctexFile:(NSString *)theFileName {
     BOOL rv = NO;
     if (scanner)
         synctex_scanner_free(scanner);
@@ -621,7 +621,7 @@
 
 #pragma mark || Generic
 
-- (BOOL)parseSyncFileIfNeeded {
+- (BOOL)loadSyncFileIfNeeded {
     NSString *theFileName = [self fileName];
     BOOL rv = NO;
     
@@ -635,23 +635,23 @@
             if (currentModDate && [modDate compare:currentModDate] != 
NSOrderedDescending)
                 rv = YES;
             else if (isPdfsync)
-                rv = [self parsePdfsyncFile:theSyncFileName];
+                rv = [self loadPdfsyncFile:theSyncFileName];
             else
-                rv = [self parseSynctexFile:theFileName];
+                rv = [self loadSynctexFile:theFileName];
         } else {
             theSyncFileName = [theFileName 
stringByReplacingPathExtension:SKPDFSynchronizerPdfsyncExtension];
             
             if (SKFileExistsAtPath(theSyncFileName))
-                rv = [self parsePdfsyncFile:theSyncFileName];
+                rv = [self loadPdfsyncFile:theSyncFileName];
             else
-                rv = [self parseSynctexFile:theFileName];
+                rv = [self loadSynctexFile:theFileName];
         }
     }
     return rv;
 }
 
 - (oneway void)serverFindFileAndLineForLocation:(NSPoint)point 
inRect:(NSRect)rect pageBounds:(NSRect)bounds atPageIndex:(unsigned 
int)pageIndex {
-    if ([self shouldKeepRunning] && [self parseSyncFileIfNeeded]) {
+    if ([self shouldKeepRunning] && [self loadSyncFileIfNeeded]) {
         int foundLine = 0;
         NSString *foundFile = nil;
         BOOL success = NO;
@@ -667,7 +667,7 @@
 }
 
 - (oneway void)serverFindPageAndLocationForLine:(int)line inFile:(bycopy 
NSString *)file {
-    if (file && [self shouldKeepRunning] && [self parseSyncFileIfNeeded]) {
+    if (file && [self shouldKeepRunning] && [self loadSyncFileIfNeeded]) {
         unsigned int foundPageIndex = NSNotFound;
         NSPoint foundPoint = NSZeroPoint;
         BOOL success = NO;


This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Skim-app-commit mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/skim-app-commit

Reply via email to