diff options
author | avenjamin <avenjamin@gmail.com> | 2008-12-02 23:13:12 +0000 |
---|---|---|
committer | avenjamin <avenjamin@gmail.com> | 2008-12-02 23:13:12 +0000 |
commit | ed4f9e131caf2b3fcd4cfc0b270ab46b7272049f (patch) | |
tree | f42b78f4e8639c53f42f3fa9f1598586a5a1a1ee | |
parent | 41259686e07309d0994fffee015a567bd479c7bc (diff) | |
download | sequelpro-ed4f9e131caf2b3fcd4cfc0b270ab46b7272049f.tar.gz sequelpro-ed4f9e131caf2b3fcd4cfc0b270ab46b7272049f.tar.bz2 sequelpro-ed4f9e131caf2b3fcd4cfc0b270ab46b7272049f.zip |
Fixed a bug allowing us to now enable the TABLE INFORMATION pane
-rw-r--r-- | English.lproj/DBView.xib | 25 | ||||
-rw-r--r-- | SPTableInfo.h | 2 | ||||
-rw-r--r-- | 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 @@ <?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"]; |