Revision: 16747
http://sourceforge.net/p/skim-app/code/16747
Author: hofman
Date: 2026-10-30 15:15:37 +0000 (Fri, 30 Oct 2026)
Log Message:
-----------
update bookmark data when resolving directly from path and fileID has changed
Modified Paths:
--------------
trunk/SKAlias.m
Modified: trunk/SKAlias.m
===================================================================
--- trunk/SKAlias.m 2026-10-29 17:50:55 UTC (rev 16746)
+++ trunk/SKAlias.m 2026-10-30 15:15:37 UTC (rev 16747)
@@ -157,8 +157,14 @@
NSString *path = [[[NSURL resourceValuesForKeys:@[NSURLPathKey]
fromBookmarkData:data] objectForKey:NSURLPathKey] stringByStandardizingPath];
if (path) {
fileURL = [NSURL fileURLWithPath:path isDirectory:[[path
pathExtension] isCaseInsensitiveEqual:@"pdfd"]];
- if ([fileURL checkResourceIsReachableAndReturnError:NULL] ==
NO)
+ if ([fileURL checkResourceIsReachableAndReturnError:NULL]) {
+ NSNumber *fileID = nil;
+ NSNumber *myFileID = [[NSURL
resourceValuesForKeys:@[NSURLFileIDKey] fromBookmarkData:data]
objectForKey:NSURLFileIDKey];
+ if (myFileID && [fileURL getResourceValue:&fileID
forKey:NSURLFileIDKey error:NULL] && [fileID isEqual:myFileID] == NO)
+ shouldUpdate = YES;
+ } else {
fileURL = nil;
+ }
}
}
if (fileURL == nil) {
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