Revision: 29805
http://sourceforge.net/p/bibdesk/svn/29805
Author: hofman
Date: 2025-11-14 17:25:11 +0000 (Fri, 14 Nov 2025)
Log Message:
-----------
don't use deprecated initializer for NSKeyedUnarchiver
Modified Paths:
--------------
trunk/bibdesk/BDSKFileSearchIndex.m
trunk/bibdesk/BibItem.m
Modified: trunk/bibdesk/BDSKFileSearchIndex.m
===================================================================
--- trunk/bibdesk/BDSKFileSearchIndex.m 2025-11-14 16:46:46 UTC (rev 29804)
+++ trunk/bibdesk/BDSKFileSearchIndex.m 2025-11-14 17:25:11 UTC (rev 29805)
@@ -223,7 +223,7 @@
BOOL isIndexCache = NO;
NSData *data = [NSData dataWithContentsOfURL:aURL
options:NSDataReadingMapped error:NULL];
if (data) {
- NSKeyedUnarchiver *unarchiver = [[NSKeyedUnarchiver alloc]
initForReadingWithData:data];
+ NSKeyedUnarchiver *unarchiver = [[NSKeyedUnarchiver alloc]
initForReadingFromData:data error:NULL];
isIndexCache = [[unarchiver decodeObjectOfClass:[NSURL class]
forKey:@"documentURL"] isEqual:documentURL];
[unarchiver finishDecoding];
}
@@ -495,7 +495,7 @@
if (indexCacheURL) {
- NSKeyedUnarchiver *unarchiver = [[NSKeyedUnarchiver alloc]
initForReadingWithData:[NSData dataWithContentsOfURL:indexCacheURL]];
+ NSKeyedUnarchiver *unarchiver = [[NSKeyedUnarchiver alloc]
initForReadingFromData:[NSData dataWithContentsOfURL:indexCacheURL] error:NULL];
indexData = [[unarchiver decodeObjectOfClass:[NSData class]
forKey:@"indexData"] mutableCopy];
if (indexData != NULL) {
tmpIndex = SKIndexOpenWithMutableData((__bridge
CFMutableDataRef)indexData, NULL);
Modified: trunk/bibdesk/BibItem.m
===================================================================
--- trunk/bibdesk/BibItem.m 2025-11-14 16:46:46 UTC (rev 29804)
+++ trunk/bibdesk/BibItem.m 2025-11-14 17:25:11 UTC (rev 29805)
@@ -492,7 +492,7 @@
+ (NSArray *)publicationsFromPasteboard:(NSPasteboard *)pboard
macroResolver:(BDSKMacroResolver *)aMacroResolver {
NSData *data = [pboard dataForType:BDSKPasteboardTypePublications];
- NSKeyedUnarchiver *unarchiver = [[NSKeyedUnarchiver alloc]
initForReadingWithData:data];
+ NSKeyedUnarchiver *unarchiver = [[NSKeyedUnarchiver alloc]
initForReadingFromData:data error:NULL];
[NSString setMacroResolverForUnarchiving:aMacroResolver];
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