Revision: 16779
http://sourceforge.net/p/skim-app/code/16779
Author: hofman
Date: 2026-11-02 15:23:34 +0000 (Mon, 02 Nov 2026)
Log Message:
-----------
chekkc class of cached urls instead of checking for NSNull
Modified Paths:
--------------
trunk/SKBookmark.m
Modified: trunk/SKBookmark.m
===================================================================
--- trunk/SKBookmark.m 2026-11-02 15:21:32 UTC (rev 16778)
+++ trunk/SKBookmark.m 2026-11-02 15:23:34 UTC (rev 16779)
@@ -547,7 +547,7 @@
if (cachedFileURL == nil) {
fileURL = [alias fileURLNoUI];
[self setCachedFileURL:fileURL ?: (id)[NSNull null]];
- } else if ([cachedFileURL isEqual:[NSNull null]] == NO) {
+ } else if ([cachedFileURL isKindOfClass:[NSURL class]]) {
fileURL = cachedFileURL;
}
return fileURL;
@@ -562,7 +562,7 @@
}
- (NSURL *)fileURLToOpen {
- if (cachedFileURL && [cachedFileURL isEqual:[NSNull null]] == NO)
+ if ([cachedFileURL isKindOfClass:[NSURL class]])
return cachedFileURL;
else
return [alias fileURL];
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