Revision: 27804
http://sourceforge.net/p/bibdesk/svn/27804
Author: hofman
Date: 2022-08-15 16:43:47 +0000 (Mon, 15 Aug 2022)
Log Message:
-----------
use integer for icon database file version
Modified Paths:
--------------
trunk/bibdesk/BDSKWebIconDatabase.m
Modified: trunk/bibdesk/BDSKWebIconDatabase.m
===================================================================
--- trunk/bibdesk/BDSKWebIconDatabase.m 2022-08-14 22:42:44 UTC (rev 27803)
+++ trunk/bibdesk/BDSKWebIconDatabase.m 2022-08-15 16:43:47 UTC (rev 27804)
@@ -47,7 +47,7 @@
#define VERSION_KEY @"version"
#define ICONURL_KEY @"iconURL"
#define LASTVISITED_KEY @"lastVisited"
-#define VERSION @"1"
+#define VERSION [NSNumber numberWithInteger:1]
#define ICONS_FILENAME @"Icons.plist"
@interface BDSKWebIconDatabase ()
@@ -74,7 +74,7 @@
NSDictionary *dict = nil;
if (dbData) {
dict = [NSPropertyListSerialization propertyListWithData:dbData
options:NSPropertyListMutableContainers format:NULL error:NULL];
- if ([[dict objectForKey:VERSION_KEY] numericCompare:VERSION] ==
NSOrderedDescending)
+ if ([[dict objectForKey:VERSION_KEY] compare:VERSION] ==
NSOrderedDescending)
dict == nil;
}
icons = [[NSMutableDictionary alloc] initWithDictionary:[dict
objectForKey:ICONS_KEY]];
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