Revision: 16752
http://sourceforge.net/p/skim-app/code/16752
Author: hofman
Date: 2026-10-30 17:04:01 +0000 (Fri, 30 Oct 2026)
Log Message:
-----------
resuse variable
Modified Paths:
--------------
trunk/SKAlias.m
Modified: trunk/SKAlias.m
===================================================================
--- trunk/SKAlias.m 2026-10-30 16:43:19 UTC (rev 16751)
+++ trunk/SKAlias.m 2026-10-30 17:04:01 UTC (rev 16752)
@@ -246,13 +246,10 @@
- (NSString *)fileType {
NSString *type = nil;
NSURL *fileURL = [self fileURLNoUI];
- if (fileURL) {
+ if (fileURL)
type = [[NSWorkspace sharedWorkspace] typeOfFile:[fileURL path]
error:NULL];
- } else if (aliasHandle == nil) {
- NSString *ext = [[[NSURL resourceValuesForKeys:@[NSURLPathKey]
fromBookmarkData:data] objectForKey:NSURLPathKey] pathExtension];
- if (ext)
- type =
CFBridgingRelease(UTTypeCreatePreferredIdentifierForTag(kUTTagClassFilenameExtension,
(__bridge CFStringRef)ext, NULL));
- }
+ else if (aliasHandle == nil && (type = [[[NSURL
resourceValuesForKeys:@[NSURLPathKey] fromBookmarkData:data]
objectForKey:NSURLPathKey] pathExtension]))
+ type =
CFBridgingRelease(UTTypeCreatePreferredIdentifierForTag(kUTTagClassFilenameExtension,
(__bridge CFStringRef)type, NULL));
return type;
}
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