diff options
author | Bibiko <bibiko@eva.mpg.de> | 2010-12-14 10:25:40 +0000 |
---|---|---|
committer | Bibiko <bibiko@eva.mpg.de> | 2010-12-14 10:25:40 +0000 |
commit | 71394ef3837299457b1a5b65ff562c3be6985bba (patch) | |
tree | d604d24a2fedb7a66c1b92c6940786d46b92e2e6 /Source/SPBundleCommandTextView.m | |
parent | 3033e428aba1418e7797fb987c1280c6db67c305 (diff) | |
download | sequelpro-71394ef3837299457b1a5b65ff562c3be6985bba.tar.gz sequelpro-71394ef3837299457b1a5b65ff562c3be6985bba.tar.bz2 sequelpro-71394ef3837299457b1a5b65ff562c3be6985bba.zip |
• fixed GUI problem for line numbering in Query Editor
• improved Bundle command script editor
• sped up a bit the NoodleLineNumbering by pre-calculation of constants used in a loop
• fixed issue to detect the scope Query Editor better and safer for Bundle commands
Diffstat (limited to 'Source/SPBundleCommandTextView.m')
-rw-r--r-- | Source/SPBundleCommandTextView.m | 20 |
1 files changed, 8 insertions, 12 deletions
diff --git a/Source/SPBundleCommandTextView.m b/Source/SPBundleCommandTextView.m index 8a5bf620..6411ccfd 100644 --- a/Source/SPBundleCommandTextView.m +++ b/Source/SPBundleCommandTextView.m @@ -29,25 +29,15 @@ @implementation SPBundleCommandTextView -- (id)init -{ - if(self = [super init]) - { - ; - } - return self; -} - - (void)dealloc { - - [[NSNotificationCenter defaultCenter] removeObserver:self]; [prefs removeObserver:self forKeyPath:SPCustomQueryEditorTabStopWidth]; + [[NSNotificationCenter defaultCenter] removeObserver:self]; [prefs release]; [lineNumberView release]; } -- (void) awakeFromNib +- (void)awakeFromNib { prefs = [[NSUserDefaults standardUserDefaults] retain]; @@ -68,6 +58,12 @@ // Re-define tab stops for a better editing [self setTabStops]; + // add NSViewBoundsDidChangeNotification to scrollView + [[commandScrollView contentView] setPostsBoundsChangedNotifications:YES]; + + // disabled to get the current text range in textView safer + [[self layoutManager] setBackgroundLayoutEnabled:NO]; + } - (void)drawRect:(NSRect)rect |