Revision: 27785 http://sourceforge.net/p/bibdesk/svn/27785 Author: hofman Date: 2022-08-10 09:14:35 +0000 (Wed, 10 Aug 2022) Log Message: ----------- ignore future versions of web icon database from disk
Modified Paths: -------------- trunk/bibdesk/BDSKWebIconDatabase.m Modified: trunk/bibdesk/BDSKWebIconDatabase.m =================================================================== --- trunk/bibdesk/BDSKWebIconDatabase.m 2022-08-10 09:09:02 UTC (rev 27784) +++ trunk/bibdesk/BDSKWebIconDatabase.m 2022-08-10 09:14:35 UTC (rev 27785) @@ -38,6 +38,7 @@ #import "BDSKWebIconDatabase.h" #import "NSFileManager_BDSKExtensions.h" +#import "NSString_BDSKExtensions.h" #define ICONS_KEY @"icons" #define ICONURLS_KEY @"iconURLs" @@ -65,8 +66,11 @@ NSURL *dbURL = [self webIconDatabaseURL]; NSData *dbData = [NSData dataWithContentsOfURL:dbURL options:0 error:NULL]; NSDictionary *dict = nil; - if (dbData) + if (dbData) { dict = [NSPropertyListSerialization propertyListWithData:dbData options:NSPropertyListMutableContainers format:NULL error:NULL]; + if ([[dict objectForKey:VERSION_KEY] numericCompare:@"1"] == NSOrderedDescending) + dict == nil; + } icons = [[NSMutableDictionary alloc] initWithDictionary:[dict objectForKey:ICONS_KEY]]; iconURLs = [[NSMutableDictionary alloc] initWithDictionary:[dict objectForKey:ICONURLS_KEY]]; recentIcons = [[NSMutableDictionary alloc] init]; This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. _______________________________________________ Bibdesk-commit mailing list Bibdesk-commit@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bibdesk-commit