Revision: 16782
http://sourceforge.net/p/skim-app/code/16782
Author: hofman
Date: 2026-11-03 15:36:42 +0000 (Tue, 03 Nov 2026)
Log Message:
-----------
set label of open files when alias data fails
Modified Paths:
--------------
trunk/NSDocument_SKExtensions.m
Modified: trunk/NSDocument_SKExtensions.m
===================================================================
--- trunk/NSDocument_SKExtensions.m 2026-11-02 15:30:06 UTC (rev 16781)
+++ trunk/NSDocument_SKExtensions.m 2026-11-03 15:36:42 UTC (rev 16782)
@@ -127,15 +127,13 @@
- (NSDictionary *)currentDocumentSetup {
NSMutableDictionary *setup = [NSMutableDictionary dictionary];
NSURL *fileURL = [self fileURL];
+ SKAlias *alias = fileURL ? [[SKAlias alloc] initWithURL:fileURL] : nil;
+ NSData *data = [alias data];
- if (fileURL) {
- SKAlias *alias = [[SKAlias alloc] initWithURL:fileURL];
- NSData *data = [alias data];
- if (data)
- [setup setObject:data forKey:[alias isBookmark] ?
SKDocumentSetupBookmarkKey : SKDocumentSetupAliasKey];
- } else {
+ if (data)
+ [setup setObject:data forKey:[alias isBookmark] ?
SKDocumentSetupBookmarkKey : SKDocumentSetupAliasKey];
+ else
[setup setObject:[self displayName] forKey:@"label"];
- }
NSWindow *window = [self primaryWindow];
if (window) {
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