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/SPBundleCommandTextView.m | |
parent | a6bff16b6f7e65cf74376e92d8d60d4572a20e3c (diff) | |
download | sequelpro-39cfd1e8e412572ea53e70f639a8a8031b478ac0.tar.gz sequelpro-39cfd1e8e412572ea53e70f639a8a8031b478ac0.tar.bz2 sequelpro-39cfd1e8e412572ea53e70f639a8a8031b478ac0.zip |
• some minor code cleaning
Diffstat (limited to 'Source/SPBundleCommandTextView.m')
-rw-r--r-- | Source/SPBundleCommandTextView.m | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/Source/SPBundleCommandTextView.m b/Source/SPBundleCommandTextView.m index d467da46..cd6e5706 100644 --- a/Source/SPBundleCommandTextView.m +++ b/Source/SPBundleCommandTextView.m @@ -58,13 +58,13 @@ // Re-define tab stops for a better editing [self setTabStops]; - // add NSViewBoundsDidChangeNotification to scrollView - [[commandScrollView contentView] setPostsBoundsChangedNotifications:YES]; - [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(boundsDidChangeNotification:) name:@"NSViewBoundsDidChangeNotification" object:[commandScrollView contentView]]; - // disabled to get the current text range in textView safer [[self layoutManager] setBackgroundLayoutEnabled:NO]; + // add NSViewBoundsDidChangeNotification to scrollView + [[commandScrollView contentView] setPostsBoundsChangedNotifications:YES]; + [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(boundsDidChangeNotification:) name:NSViewBoundsDidChangeNotification object:[commandScrollView contentView]]; + } - (void)drawRect:(NSRect)rect |