aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--English.lproj/DBView.xib25
-rw-r--r--SPTableInfo.h2
-rw-r--r--SPTableInfo.m16
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 @@
<?xml version="1.0" encoding="UTF-8"?>
-<archive type="com.apple.InterfaceBuilder3.Cocoa.XIB" version="7.03">
+<archive type="com.apple.InterfaceBuilder3.Cocoa.XIB" version="7.02">
<data>
<int key="IBDocument.SystemTarget">1050</int>
<string key="IBDocument.SystemVersion">9F33</string>
- <string key="IBDocument.InterfaceBuilderVersion">677</string>
+ <string key="IBDocument.InterfaceBuilderVersion">672</string>
<string key="IBDocument.AppKitVersion">949.34</string>
<string key="IBDocument.HIToolboxVersion">352.00</string>
<object class="NSMutableArray" key="IBDocument.EditedObjectIDs">
@@ -14,15 +14,6 @@
<bool key="EncodedWithXMLCoder">YES</bool>
<string>com.apple.InterfaceBuilder.CocoaPlugin</string>
</object>
- <object class="NSMutableDictionary" key="IBDocument.Metadata">
- <bool key="EncodedWithXMLCoder">YES</bool>
- <object class="NSArray" key="dict.sortedKeys">
- <bool key="EncodedWithXMLCoder">YES</bool>
- </object>
- <object class="NSMutableArray" key="dict.values">
- <bool key="EncodedWithXMLCoder">YES</bool>
- </object>
- </object>
<object class="NSMutableArray" key="IBDocument.RootObjects" id="105205302">
<bool key="EncodedWithXMLCoder">YES</bool>
<object class="NSCustomObject" id="427689665">
@@ -11733,6 +11724,14 @@ IGRvIHlvdSB3YW50IHRvIGFkZCBmb3IgdGhpcyBmaWVsZD8</string>
</object>
<int key="connectionID">4680</int>
</object>
+ <object class="IBConnectionRecord">
+ <object class="IBOutletConnection" key="connection">
+ <string key="label">tableList</string>
+ <reference key="source" ref="622219357"/>
+ <reference key="destination" ref="251040077"/>
+ </object>
+ <int key="connectionID">4681</int>
+ </object>
</object>
<object class="IBMutableOrderedSet" key="objectRecords">
<object class="NSArray" key="orderedObjects">
@@ -19670,7 +19669,7 @@ Y2hhbmdlIHRoZSBvcmRlcg</string>
</object>
</object>
<nil key="sourceID"/>
- <int key="maxID">4680</int>
+ <int key="maxID">4681</int>
</object>
<object class="IBClassDescriber" key="IBDocument.Classes">
<object class="NSMutableArray" key="referencedPartialClassDescriptions">
@@ -19846,6 +19845,7 @@ Y2hhbmdlIHRoZSBvcmRlcg</string>
<bool key="EncodedWithXMLCoder">YES</bool>
<string>infoTable</string>
<string>tableDocumentInstance</string>
+ <string>tableList</string>
<string>tableListInstance</string>
</object>
<object class="NSMutableArray" key="dict.values">
@@ -19853,6 +19853,7 @@ Y2hhbmdlIHRoZSBvcmRlcg</string>
<string>id</string>
<string>id</string>
<string>id</string>
+ <string>id</string>
</object>
</object>
<object class="IBClassDescriptionSource" key="sourceIdentifier">
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"];