Revision: 29967
          http://sourceforge.net/p/bibdesk/svn/29967
Author:   hofman
Date:     2026-01-21 09:51:46 +0000 (Wed, 21 Jan 2026)
Log Message:
-----------
don't use deprecated nsdata reading options

Modified Paths:
--------------
    trunk/bibdesk/BDSKFileSearchIndex.m

Modified: trunk/bibdesk/BDSKFileSearchIndex.m
===================================================================
--- trunk/bibdesk/BDSKFileSearchIndex.m 2026-01-20 17:50:32 UTC (rev 29966)
+++ trunk/bibdesk/BDSKFileSearchIndex.m 2026-01-21 09:51:46 UTC (rev 29967)
@@ -221,7 +221,7 @@
 
 static inline BOOL isIndexCacheForDocumentURL(NSURL *aURL, NSURL *documentURL) 
{
     BOOL isIndexCache = NO;
-    NSData *data = [NSData dataWithContentsOfURL:aURL 
options:NSDataReadingMapped error:NULL];
+    NSData *data = [NSData dataWithContentsOfURL:aURL 
options:NSDataReadingMappedIfSafe error:NULL];
     if (data) {
         NSKeyedUnarchiver *unarchiver = [[NSKeyedUnarchiver alloc] 
initForReadingFromData:data error:NULL];
         @try { isIndexCache = [[unarchiver decodeObjectOfClass:[NSURL class] 
forKey:@"documentURL"] isEqual:documentURL]; }

This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.



_______________________________________________
Bibdesk-commit mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bibdesk-commit

Reply via email to