Revision: 16148
          http://sourceforge.net/p/skim-app/code/16148
Author:   hofman
Date:     2026-04-02 14:26:11 +0000 (Thu, 02 Apr 2026)
Log Message:
-----------
compare to correct mod date. Remove unused modDate ivar.

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

Modified: trunk/SKFileUpdateChecker.h
===================================================================
--- trunk/SKFileUpdateChecker.h 2026-04-02 14:22:57 UTC (rev 16147)
+++ trunk/SKFileUpdateChecker.h 2026-04-02 14:26:11 UTC (rev 16148)
@@ -54,7 +54,6 @@
     
     dispatch_source_t source;
     
-    NSDate *lastModifiedDate;
     NSTimer *fileUpdateTimer;
 }
 

Modified: trunk/SKFileUpdateChecker.m
===================================================================
--- trunk/SKFileUpdateChecker.m 2026-04-02 14:22:57 UTC (rev 16147)
+++ trunk/SKFileUpdateChecker.m 2026-04-02 14:26:11 UTC (rev 16148)
@@ -295,9 +295,6 @@
 
 - (void)didUpdateFromURL:(NSURL *)fileURL {
     fucFlags.fileChangedOnDisk = NO;
-    NSDate *modDate = nil;
-    [[fileURL URLByResolvingSymlinksInPath] getResourceValue:&modDate 
forKey:NSURLAttributeModificationDateKey error:NULL];
-    lastModifiedDate = modDate;
 }
 
 - (void)observeValueForKeyPath:(NSString *)keyPath ofObject:(id)object 
change:(NSDictionary *)change context:(void *)context {

Modified: trunk/SKPDFSynchronizer.m
===================================================================
--- trunk/SKPDFSynchronizer.m   2026-04-02 14:22:57 UTC (rev 16147)
+++ trunk/SKPDFSynchronizer.m   2026-04-02 14:26:11 UTC (rev 16148)
@@ -118,7 +118,7 @@
     }
     NSDate *modDate = nil;
     if (syncFileName)
-        [[NSURL fileURLWithPath:syncFileName isDirectory:NO] 
getResourceValue:&modDate forKey:NSURLAttributeModificationDateKey error:NULL];
+        [[NSURL fileURLWithPath:syncFileName isDirectory:NO] 
getResourceValue:&modDate forKey:NSURLContentModificationDateKey error:NULL];
     lastModDate = modDate;
     [lock unlock];
 }
@@ -204,7 +204,7 @@
         if (theSyncFileName && [[NSFileManager defaultManager] 
fileExistsAtPath:theSyncFileName]) {
             NSDate *modDate = nil;
             if (currentModDate)
-                [[NSURL fileURLWithPath:theSyncFileName isDirectory:NO] 
getResourceValue:&modDate forKey:NSURLAttributeModificationDateKey error:NULL];
+                [[NSURL fileURLWithPath:theSyncFileName isDirectory:NO] 
getResourceValue:&modDate forKey:NSURLContentModificationDateKey error:NULL];
         
             if (currentModDate && [modDate compare:currentModDate] != 
NSOrderedDescending)
                 rv = YES;

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



_______________________________________________
Skim-app-commit mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/skim-app-commit

Reply via email to