Revision: 16741
http://sourceforge.net/p/skim-app/code/16741
Author: hofman
Date: 2026-10-29 15:30:58 +0000 (Thu, 29 Oct 2026)
Log Message:
-----------
standardize paths before comparing
Modified Paths:
--------------
trunk/SKAlias.m
Modified: trunk/SKAlias.m
===================================================================
--- trunk/SKAlias.m 2026-10-29 09:52:57 UTC (rev 16740)
+++ trunk/SKAlias.m 2026-10-29 15:30:58 UTC (rev 16741)
@@ -154,7 +154,7 @@
shouldUpdate = YES;
} else if (data) {
if (allowUI == NO) {
- NSString *path = [[NSURL resourceValuesForKeys:@[NSURLPathKey]
fromBookmarkData:data] objectForKey:NSURLPathKey];
+ 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)
@@ -186,8 +186,8 @@
NSArray *keys = @[NSURLPathKey, NSURLFileIDKey,
NSURLVolumeUUIDStringKey];
NSDictionary *rsrcValues = [fileURL resourceValuesForKeys:keys
error:NULL];
NSDictionary *myRsrcValues = [NSURL resourceValuesForKeys:keys
fromBookmarkData:data];
- NSString *path = [rsrcValues objectForKey:NSURLPathKey];
- NSString *myPath = [myRsrcValues objectForKey:NSURLPathKey];
+ NSString *path = [[rsrcValues objectForKey:NSURLPathKey]
stringByStandardizingPath];
+ NSString *myPath = [[myRsrcValues objectForKey:NSURLPathKey]
stringByStandardizingPath];
if (path && myPath) {
NSNumber *fileID = [rsrcValues objectForKey:NSURLFileIDKey];
NSNumber *myFileID = [myRsrcValues objectForKey:NSURLFileIDKey];
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