- fixed <rdar://problem/
4475857> API: Setting a history item limit programmatically doesn't work
* History/WebHistory.m:
(-[WebHistoryPrivate _loadHistoryGuts:URL:error:]):
use [self historyItemLimit], which prefers the explicitly-set value and falls back to the
NSUserDefaults value, instead of using the NSUserDefaults value explicitly.
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@13266
268f45cc-cd09-0410-ab3c-
d52691b4dbfc
+2006-03-13 John Sullivan <sullivan@apple.com>
+
+ Reviewed by Tim Omernick.
+
+ - fixed <rdar://problem/4475857> API: Setting a history item limit programmatically doesn't work
+
+ * History/WebHistory.m:
+ (-[WebHistoryPrivate _loadHistoryGuts:URL:error:]):
+ use [self historyItemLimit], which prefers the explicitly-set value and falls back to the
+ NSUserDefaults value, instead of using the NSUserDefaults value explicitly.
+
2006-03-10 Darin Adler <darin@apple.com>
Reviewed by Adele.
NSArray *array = [fileAsDictionary objectForKey:DatesArrayKey];
- int limit = [[NSUserDefaults standardUserDefaults] integerForKey: @"WebKitHistoryItemLimit"];
+ int limit = [self historyItemLimit];
NSCalendarDate *ageLimitDate = [self _ageLimitDate];
int index = 0;
// reverse dates so you're loading the oldest first, to minimize the number of comparisons