From 2f9247036502a6ff41c785529c0aa487a8be5994 Mon Sep 17 00:00:00 2001 From: abhibeckert Date: Mon, 29 Sep 2008 09:46:28 +0000 Subject: Default value for limit rows preference is now 1000 rows, and is on by default --- MainController.m | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/MainController.m b/MainController.m index 36656ed0..548c0434 100644 --- a/MainController.m +++ b/MainController.m @@ -682,8 +682,12 @@ code that need to be executed when the nib file is loaded [GrowlApplicationBridge setGrowlDelegate:self]; - prefs = [[NSUserDefaults standardUserDefaults] retain]; - isNewFavorite = NO; + prefs = [[NSUserDefaults standardUserDefaults] retain]; + isNewFavorite = NO; + [prefs registerDefaults:[NSDictionary dictionaryWithObjectsAndKeys: + [NSNumber numberWithBool:YES], @"limitRows", + [NSNumber numberWithInt:1000], @"limitRowsValue", + nil]]; //set standard preferences if no preferences are found if ( [prefs objectForKey:@"reloadAfterAdding"] == nil ) @@ -708,8 +712,8 @@ code that need to be executed when the nib file is loaded //set standard values for new preferences [prefs setBool:YES forKey:@"showError"]; [prefs setBool:NO forKey:@"dontShowBlob"]; - [prefs setBool:NO forKey:@"limitRows"]; - [prefs setInteger:100 forKey:@"limitRowsValue"]; +// [prefs setBool:NO forKey:@"limitRows"]; +// [prefs setInteger:100 forKey:@"limitRowsValue"]; [prefs setObject:[NSString stringWithString:NSHomeDirectory()] forKey:@"savePath"]; [prefs setObject:[NSString stringWithString:NSHomeDirectory()] forKey:@"openPath"]; //remove old preferences -- cgit v1.2.3