diff options
author | Bibiko <bibiko@eva.mpg.de> | 2011-01-05 19:02:42 +0000 |
---|---|---|
committer | Bibiko <bibiko@eva.mpg.de> | 2011-01-05 19:02:42 +0000 |
commit | 39cfd1e8e412572ea53e70f639a8a8031b478ac0 (patch) | |
tree | 6c1d060212c3796ac81cc9903886a444a5be4789 /Source/SPTextView.m | |
parent | a6bff16b6f7e65cf74376e92d8d60d4572a20e3c (diff) | |
download | sequelpro-39cfd1e8e412572ea53e70f639a8a8031b478ac0.tar.gz sequelpro-39cfd1e8e412572ea53e70f639a8a8031b478ac0.tar.bz2 sequelpro-39cfd1e8e412572ea53e70f639a8a8031b478ac0.zip |
• some minor code cleaning
Diffstat (limited to 'Source/SPTextView.m')
-rw-r--r-- | Source/SPTextView.m | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/Source/SPTextView.m b/Source/SPTextView.m index dd582e59..97037e0b 100644 --- a/Source/SPTextView.m +++ b/Source/SPTextView.m @@ -144,7 +144,6 @@ NSInteger alphabeticSort(id string1, id string2, void *reverse) [self setAutohelp:[prefs boolForKey:SPCustomQueryUpdateAutoHelp]]; [self setAutouppercaseKeywords:[prefs boolForKey:SPCustomQueryAutoUppercaseKeywords]]; [self setCompletionWasReinvokedAutomatically:NO]; - // Re-define tab stops for a better editing [self setTabStops]; @@ -154,8 +153,7 @@ NSInteger alphabeticSort(id string1, id string2, void *reverse) // add NSViewBoundsDidChangeNotification to scrollView [[scrollView contentView] setPostsBoundsChangedNotifications:YES]; - NSNotificationCenter *aNotificationCenter = [NSNotificationCenter defaultCenter]; - [aNotificationCenter addObserver:self selector:@selector(boundsDidChangeNotification:) name:@"NSViewBoundsDidChangeNotification" object:[scrollView contentView]]; + [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(boundsDidChangeNotification:) name:NSViewBoundsDidChangeNotification object:[scrollView contentView]]; [self setQueryHiliteColor:[NSUnarchiver unarchiveObjectWithData:[prefs dataForKey:SPCustomQueryEditorHighlightQueryColor]]]; [self setQueryEditorBackgroundColor:[NSUnarchiver unarchiveObjectWithData:[prefs dataForKey:SPCustomQueryEditorBackgroundColor]]]; |