aboutsummaryrefslogtreecommitdiffstats
path: root/SPTableInfo.m
diff options
context:
space:
mode:
authoravenjamin <avenjamin@gmail.com>2008-12-02 23:13:12 +0000
committeravenjamin <avenjamin@gmail.com>2008-12-02 23:13:12 +0000
commited4f9e131caf2b3fcd4cfc0b270ab46b7272049f (patch)
treef42b78f4e8639c53f42f3fa9f1598586a5a1a1ee /SPTableInfo.m
parent41259686e07309d0994fffee015a567bd479c7bc (diff)
downloadsequelpro-ed4f9e131caf2b3fcd4cfc0b270ab46b7272049f.tar.gz
sequelpro-ed4f9e131caf2b3fcd4cfc0b270ab46b7272049f.tar.bz2
sequelpro-ed4f9e131caf2b3fcd4cfc0b270ab46b7272049f.zip
Fixed a bug allowing us to now enable the TABLE INFORMATION pane
Diffstat (limited to 'SPTableInfo.m')
-rw-r--r--SPTableInfo.m16
1 files changed, 6 insertions, 10 deletions
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"];