Revision: 16734
http://sourceforge.net/p/skim-app/code/16734
Author: hofman
Date: 2026-10-28 15:31:59 +0000 (Wed, 28 Oct 2026)
Log Message:
-----------
get NSURLVolumeUUIDStringKey rather than NSURLVolumeIdentifierKey as that is
saved in the bookmark
Modified Paths:
--------------
trunk/SKAlias.m
Modified: trunk/SKAlias.m
===================================================================
--- trunk/SKAlias.m 2026-10-28 15:28:49 UTC (rev 16733)
+++ trunk/SKAlias.m 2026-10-28 15:31:59 UTC (rev 16734)
@@ -183,8 +183,8 @@
if (aliasHandle) {
return [[fileURLFromAliasHandle(aliasHandle, kResolveAliasFileNoUI)
path] isCaseInsensitiveEqual:[fileURL path]];
} else if (data) {
- NSDictionary *dict = [fileURL resourceValuesForKeys:@[NSURLPathKey,
NSURLFileIDKey, NSURLVolumeIdentifierKey] error:NULL];
- NSDictionary *myDict = [NSURL resourceValuesForKeys:@[NSURLPathKey,
NSURLFileIDKey, NSURLVolumeIdentifierKey] fromBookmarkData:data];
+ NSDictionary *dict = [fileURL resourceValuesForKeys:@[NSURLPathKey,
NSURLFileIDKey, NSURLVolumeUUIDStringKey] error:NULL];
+ NSDictionary *myDict = [NSURL resourceValuesForKeys:@[NSURLPathKey,
NSURLFileIDKey, NSURLVolumeUUIDStringKey] fromBookmarkData:data];
NSString *path = [dict objectForKey:NSURLPathKey];
NSString *myPath = [myDict objectForKey:NSURLPathKey];
if (path && myPath) {
@@ -204,12 +204,12 @@
if (fileID && myFileID) {
if ([fileID isEqual:myFileID] == NO)
return NO;
- NSString *volumeID = [dict
objectForKey:NSURLVolumeIdentifierKey];
- NSString *myVolumeID = [myDict
objectForKey:NSURLVolumeIdentifierKey];
- if ([volumeID isEqualToString:myVolumeID]) {
+ NSString *volumeUUID = [dict
objectForKey:NSURLVolumeUUIDStringKey];
+ NSString *myVolumeUUID = [myDict
objectForKey:NSURLVolumeUUIDStringKey];
+ if ([volumeUUID isEqualToString:myVolumeUUID]) {
[self updateWithURL:fileURL];
return YES;
- } else if (volumeID && myVolumeID) {
+ } else if (volumeUUID && myVolumeUUID) {
return NO;
}
}
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