aboutsummaryrefslogtreecommitdiffstats
path: root/MainController.m
diff options
context:
space:
mode:
authorabhibeckert <abhi@abhibeckert.com>2008-09-29 09:46:28 +0000
committerabhibeckert <abhi@abhibeckert.com>2008-09-29 09:46:28 +0000
commit2f9247036502a6ff41c785529c0aa487a8be5994 (patch)
treebf25f80f4790cf41bbda8d448ba8f1403aac3471 /MainController.m
parent6fa4821be131c2d98cde1e8eb69dbaa8641d4070 (diff)
downloadsequelpro-2f9247036502a6ff41c785529c0aa487a8be5994.tar.gz
sequelpro-2f9247036502a6ff41c785529c0aa487a8be5994.tar.bz2
sequelpro-2f9247036502a6ff41c785529c0aa487a8be5994.zip
Default value for limit rows preference is now 1000 rows, and is on by default
Diffstat (limited to 'MainController.m')
-rw-r--r--MainController.m12
1 files 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