Revision: 14704
http://sourceforge.net/p/skim-app/code/14704
Author: hofman
Date: 2024-11-17 09:38:13 +0000 (Sun, 17 Nov 2024)
Log Message:
-----------
Message app delegate directly
Modified Paths:
--------------
trunk/SKDocumentController.m
Modified: trunk/SKDocumentController.m
===================================================================
--- trunk/SKDocumentController.m 2024-11-16 22:25:58 UTC (rev 14703)
+++ trunk/SKDocumentController.m 2024-11-17 09:38:13 UTC (rev 14704)
@@ -349,11 +349,9 @@
}
} else if (showNotes == NO && theURL) {
SKDownload *download = [[SKDownload alloc] initWithURL:theURL];
- BOOL success = YES;
- @try { [NSApp insertValue:download inPropertyWithKey:@"downloads"]; }
- @catch(id e) { success = NO; }
+ [[(id)[NSApp delegate] mutableArrayValueForKey:@"downloads"]
addObject:download];
if (completionHandler)
- completionHandler(nil, NO, success ? nil : [NSError
readFileErrorWithLocalizedDescription:NSLocalizedString(@"Unable to load file",
@"Error description")]);
+ completionHandler(nil, NO, nil);
} else if (completionHandler) {
completionHandler(nil, NO, [NSError
readPasteboardErrorWithLocalizedDescription:NSLocalizedString(@"Unable to load
data from clipboard", @"Error description")]);
}
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