diff options
author | dmoagx <post@wickenrode.com> | 2012-03-16 20:19:17 +0000 |
---|---|---|
committer | dmoagx <post@wickenrode.com> | 2012-03-16 20:19:17 +0000 |
commit | 8886d935e933c6239aa9b35e900d96f7d07527c7 (patch) | |
tree | 20093287366272e0e7b234f863e69e5a236a8f00 /Source/SPDatabaseDocument.m | |
parent | ab3d4cc4fcc42283cebc1062729512d85e9db620 (diff) | |
download | sequelpro-8886d935e933c6239aa9b35e900d96f7d07527c7.tar.gz sequelpro-8886d935e933c6239aa9b35e900d96f7d07527c7.tar.bz2 sequelpro-8886d935e933c6239aa9b35e900d96f7d07527c7.zip |
* Moves the background color code for SPTextView into the class. Fixes #1073
Diffstat (limited to 'Source/SPDatabaseDocument.m')
-rw-r--r-- | Source/SPDatabaseDocument.m | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/Source/SPDatabaseDocument.m b/Source/SPDatabaseDocument.m index 53d9b5c6..4af8de2f 100644 --- a/Source/SPDatabaseDocument.m +++ b/Source/SPDatabaseDocument.m @@ -299,18 +299,6 @@ static NSString *SPCreateSyntx = @"SPCreateSyntax"; // Hide the activity list [self setActivityPaneHidden:[NSNumber numberWithInteger:1]]; - // Bind the background color of the create syntax text view to the users preference - [createTableSyntaxTextView setAllowsDocumentBackgroundColorChange:YES]; - - NSMutableDictionary *bindingOptions = [NSMutableDictionary dictionary]; - - [bindingOptions setObject:NSUnarchiveFromDataTransformerName forKey:@"NSValueTransformerName"]; - - [createTableSyntaxTextView bind:@"backgroundColor" - toObject:[NSUserDefaultsController sharedUserDefaultsController] - withKeyPath:@"values.CustomQueryEditorBackgroundColor" - options:bindingOptions]; - // Load additional nibs, keeping track of the top-level objects to allow correct release NSArray *connectionDialogTopLevelObjects = nil; NSNib *nibLoader = [[NSNib alloc] initWithNibNamed:@"ConnectionErrorDialog" bundle:[NSBundle mainBundle]]; |