Revision: 14666
http://sourceforge.net/p/skim-app/code/14666
Author: hofman
Date: 2024-11-10 16:32:05 +0000 (Sun, 10 Nov 2024)
Log Message:
-----------
There is no need to save the path in the document setup, it is always included
in the bookmark data, so if that fails it will not be valid anyway.
Modified Paths:
--------------
trunk/NSDocument_SKExtensions.m
trunk/SKBookmark.m
trunk/SKDocumentController.h
trunk/SKDocumentController.m
Modified: trunk/NSDocument_SKExtensions.m
===================================================================
--- trunk/NSDocument_SKExtensions.m 2024-11-10 15:57:57 UTC (rev 14665)
+++ trunk/NSDocument_SKExtensions.m 2024-11-10 16:32:05 UTC (rev 14666)
@@ -111,8 +111,6 @@
NSURL *fileURL = [self fileURL];
if (fileURL) {
- [setup setObject:[fileURL path] forKey:SKDocumentSetupFileNameKey];
-
SKAlias *alias = [[SKAlias alloc] initWithURL:fileURL];
NSData *data = [alias data];
if (data)
Modified: trunk/SKBookmark.m
===================================================================
--- trunk/SKBookmark.m 2024-11-10 15:57:57 UTC (rev 14665)
+++ trunk/SKBookmark.m 2024-11-10 16:32:05 UTC (rev 14666)
@@ -508,13 +508,7 @@
}
- (NSURL *)fileURLToOpen {
- NSURL *fileURL = [alias fileURL];
- if (fileURL == nil && setup) {
- NSString *path = [setup objectForKey:SKDocumentSetupFileNameKey];
- if (path)
- fileURL = [NSURL fileURLWithPath:path];
- }
- return fileURL;
+ return [alias fileURL];
}
- (NSString *)fileDescription {
Modified: trunk/SKDocumentController.h
===================================================================
--- trunk/SKDocumentController.h 2024-11-10 15:57:57 UTC (rev 14665)
+++ trunk/SKDocumentController.h 2024-11-10 16:32:05 UTC (rev 14666)
@@ -56,7 +56,6 @@
extern NSString *SKDocumentSetupAliasKey;
extern NSString *SKDocumentSetupBookmarkKey;
-extern NSString *SKDocumentSetupFileNameKey;
extern NSString *SKDocumentSetupWindowFrameKey;
extern NSString *SKDocumentSetupTabsKey;
Modified: trunk/SKDocumentController.m
===================================================================
--- trunk/SKDocumentController.m 2024-11-10 15:57:57 UTC (rev 14665)
+++ trunk/SKDocumentController.m 2024-11-10 16:32:05 UTC (rev 14666)
@@ -70,7 +70,6 @@
NSString *SKDocumentSetupAliasKey = @"_BDAlias";
NSString *SKDocumentSetupBookmarkKey = @"bookmark";
-NSString *SKDocumentSetupFileNameKey = @"fileName";
NSString *SKDocumentSetupWindowFrameKey = @"windowFrame";
NSString *SKDocumentSetupTabsKey = @"tabs";
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