Revision: 27805
http://sourceforge.net/p/bibdesk/svn/27805
Author: hofman
Date: 2022-08-16 09:02:23 +0000 (Tue, 16 Aug 2022)
Log Message:
-----------
compare integer value of version rather than object
Modified Paths:
--------------
trunk/bibdesk/BDSKWebIconDatabase.m
Modified: trunk/bibdesk/BDSKWebIconDatabase.m
===================================================================
--- trunk/bibdesk/BDSKWebIconDatabase.m 2022-08-15 16:43:47 UTC (rev 27804)
+++ trunk/bibdesk/BDSKWebIconDatabase.m 2022-08-16 09:02:23 UTC (rev 27805)
@@ -47,7 +47,7 @@
#define VERSION_KEY @"version"
#define ICONURL_KEY @"iconURL"
#define LASTVISITED_KEY @"lastVisited"
-#define VERSION [NSNumber numberWithInteger:1]
+#define VERSION 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] compare:VERSION] ==
NSOrderedDescending)
+ if ([[dict objectForKey:VERSION_KEY] integerValue] > VERSION)
dict == nil;
}
icons = [[NSMutableDictionary alloc] initWithDictionary:[dict
objectForKey:ICONS_KEY]];
@@ -171,7 +171,7 @@
[savedIcons setObject:[icons objectForKey:iconURLString]
forKey:iconURLString];
}
}];
- return [NSDictionary dictionaryWithObjectsAndKeys:savedPages, PAGES_KEY,
savedIcons, ICONS_KEY, VERSION, VERSION_KEY, nil];
+ return [NSDictionary dictionaryWithObjectsAndKeys:savedPages, PAGES_KEY,
savedIcons, ICONS_KEY, [NSNumber numberWithInteger:VERSION], VERSION_KEY, nil];
}
- (void)handleApplicationWillTerminate:(NSNotification *)notification {
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