From d48005bd9b34f2fb1afd31f7487b7bbf8b9b978f Mon Sep 17 00:00:00 2001 From: rowanbeentje Date: Mon, 24 May 2010 09:24:38 +0000 Subject: - Add support for progress indicator in tabs - Hide Navigator menu option again - Remove accidentally committed debug --- Source/TableDocument.m | 18 +++--------------- 1 file changed, 3 insertions(+), 15 deletions(-) (limited to 'Source/TableDocument.m') diff --git a/Source/TableDocument.m b/Source/TableDocument.m index 5d3209e5..d0637eed 100644 --- a/Source/TableDocument.m +++ b/Source/TableDocument.m @@ -75,6 +75,7 @@ @synthesize parentWindowController; @synthesize parentTabViewItem; +@synthesize isProcessing; - (id)init { @@ -2583,7 +2584,7 @@ */ - (void)willPerformQuery:(NSNotification *)notification { - isProcessing = YES; + [self setIsProcessing:YES]; [queryProgressBar startAnimation:self]; } @@ -2592,7 +2593,7 @@ */ - (void)hasPerformedQuery:(NSNotification *)notification { - isProcessing = NO; + [self setIsProcessing:NO]; [queryProgressBar stopAnimation:self]; } @@ -3931,18 +3932,6 @@ if (_isWorkingLevel && [parentWindowController selectedTableDocument] == self) [self centerTaskWindow]; } -/** - * Support the tab's progress spinner - */ -- (BOOL)isProcessing -{ - return (isProcessing || (_isWorkingLevel > 0)); -} -- (void)setIsProcessing:(BOOL)value -{ - isProcessing = value; -} - /** * Set the parent window */ @@ -4228,7 +4217,6 @@ */ - (void)dealloc { -NSLog(@"is dealloc'd"); // Unregister observers [prefs removeObserver:self forKeyPath:SPDisplayTableViewVerticalGridlines]; -- cgit v1.2.3