Revision: 16732
          http://sourceforge.net/p/skim-app/code/16732
Author:   hofman
Date:     2026-10-28 10:29:29 +0000 (Wed, 28 Oct 2026)
Log Message:
-----------
macro for private key

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

Modified: trunk/SKAlias.m
===================================================================
--- trunk/SKAlias.m     2026-10-28 10:11:55 UTC (rev 16731)
+++ trunk/SKAlias.m     2026-10-28 10:29:29 UTC (rev 16732)
@@ -39,6 +39,7 @@
 #import "SKAlias.h"
 #import "NSString_SKExtensions.h"
 
+#define NSURLFileIDKey @"_NSURLFileIDKey"
 
 @implementation SKAlias
 
@@ -179,8 +180,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, NSURLVolumeIdentifierKey] error:NULL];
+        NSDictionary *myDict = [NSURL resourceValuesForKeys:@[NSURLPathKey, 
NSURLFileIDKey, NSURLVolumeIdentifierKey] fromBookmarkData:data];
         NSString *path = [dict objectForKey:NSURLPathKey];
         NSString *myPath = [myDict objectForKey:NSURLPathKey];
         if (path && myPath) {
@@ -188,8 +189,8 @@
                 return YES;
             if ([[NSURL fileURLWithPath:myPath isDirectory:[[myPath 
pathExtension] isCaseInsensitiveEqual:@"pdfd"]] 
checkResourceIsReachableAndReturnError:NULL])
                 return NO;
-            NSNumber *fileID = [dict objectForKey:@"_NSURLFileIDKey"];
-            NSNumber *myFileID = [myDict objectForKey:@"_NSURLFileIDKey"];
+            NSNumber *fileID = [dict objectForKey:NSURLFileIDKey];
+            NSNumber *myFileID = [myDict objectForKey:NSURLFileIDKey];
             if (fileID && myFileID) {
                 if ([fileID isEqual:myFileID] == NO)
                     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

Reply via email to