From ed4f9e131caf2b3fcd4cfc0b270ab46b7272049f Mon Sep 17 00:00:00 2001 From: avenjamin Date: Tue, 2 Dec 2008 23:13:12 +0000 Subject: Fixed a bug allowing us to now enable the TABLE INFORMATION pane --- English.lproj/DBView.xib | 25 +++++++++++++------------ SPTableInfo.h | 2 +- SPTableInfo.m | 16 ++++++---------- 3 files changed, 20 insertions(+), 23 deletions(-) diff --git a/English.lproj/DBView.xib b/English.lproj/DBView.xib index 6d094d80..f1893fd4 100644 --- a/English.lproj/DBView.xib +++ b/English.lproj/DBView.xib @@ -1,9 +1,9 @@ - + 1050 9F33 - 677 + 672 949.34 352.00 @@ -14,15 +14,6 @@ YES com.apple.InterfaceBuilder.CocoaPlugin - - YES - - YES - - - YES - - YES @@ -11733,6 +11724,14 @@ IGRvIHlvdSB3YW50IHRvIGFkZCBmb3IgdGhpcyBmaWVsZD8 4680 + + + tableList + + + + 4681 + @@ -19670,7 +19669,7 @@ Y2hhbmdlIHRoZSBvcmRlcg - 4680 + 4681 @@ -19846,6 +19845,7 @@ Y2hhbmdlIHRoZSBvcmRlcg YES infoTable tableDocumentInstance + tableList tableListInstance @@ -19853,6 +19853,7 @@ Y2hhbmdlIHRoZSBvcmRlcg id id id + id diff --git a/SPTableInfo.h b/SPTableInfo.h index 49e62d28..0613794c 100644 --- a/SPTableInfo.h +++ b/SPTableInfo.h @@ -11,7 +11,7 @@ @interface SPTableInfo : NSObject { IBOutlet id infoTable; - + IBOutlet id tableList; IBOutlet id tableListInstance; IBOutlet id tableDocumentInstance; diff --git a/SPTableInfo.m b/SPTableInfo.m index 4b51b848..5e777429 100644 --- a/SPTableInfo.m +++ b/SPTableInfo.m @@ -24,10 +24,10 @@ - (void)awakeFromNib { -// [[NSNotificationCenter defaultCenter] addObserver:self -// selector:@selector(tableChanged:) -// name:NSTableViewSelectionDidChangeNotification -// object:nil]; + [[NSNotificationCenter defaultCenter] addObserver:self + selector:@selector(tableChanged:) + name:NSTableViewSelectionDidChangeNotification + object:tableList]; [info addObject:NSLocalizedString(@"TABLE INFORMATION",@"header for table info pane")]; [infoTable reloadData]; } @@ -35,13 +35,9 @@ - (void)dealloc { - //[[NSNotificationCenter defaultCenter] removeObserver:self]; - - [tableListInstance release]; + [[NSNotificationCenter defaultCenter] removeObserver:self]; [info release]; - [infoTable release]; - [tableDocumentInstance release]; [super dealloc]; } @@ -90,7 +86,7 @@ objectValueForTableColumn:(NSTableColumn *)aTableColumn NSString *query; CMMCPResult *theResult; NSDictionary *theRow; - + [info removeAllObjects]; [info addObject:@"TABLE INFORMATION"]; -- cgit v1.2.3