diff options
author | avenjamin <avenjamin@gmail.com> | 2009-07-29 14:14:26 +0000 |
---|---|---|
committer | avenjamin <avenjamin@gmail.com> | 2009-07-29 14:14:26 +0000 |
commit | 11740d2b61c1a9811f818b06c2ad0e763b129656 (patch) | |
tree | 1babc9d77f9df93993ec518e9d5b5dc5ee392a32 | |
parent | 455c5326835d811b55d12b3ac8c0373608825b8d (diff) | |
download | sequelpro-11740d2b61c1a9811f818b06c2ad0e763b129656.tar.gz sequelpro-11740d2b61c1a9811f818b06c2ad0e763b129656.tar.bz2 sequelpro-11740d2b61c1a9811f818b06c2ad0e763b129656.zip |
- Added Splitview delegate method to hide the drag handle on the Table Info pane and Filter view.
-rw-r--r-- | Interfaces/English.lproj/DBView.xib | 18 | ||||
-rw-r--r-- | Source/TablesList.m | 19 |
2 files changed, 32 insertions, 5 deletions
diff --git a/Interfaces/English.lproj/DBView.xib b/Interfaces/English.lproj/DBView.xib index 14b44c40..bac14af4 100644 --- a/Interfaces/English.lproj/DBView.xib +++ b/Interfaces/English.lproj/DBView.xib @@ -8,7 +8,7 @@ <string key="IBDocument.HIToolboxVersion">353.00</string> <object class="NSMutableArray" key="IBDocument.EditedObjectIDs"> <bool key="EncodedWithXMLCoder">YES</bool> - <integer value="6277"/> + <integer value="5"/> </object> <object class="NSArray" key="IBDocument.PluginDependencies"> <bool key="EncodedWithXMLCoder">YES</bool> @@ -522,7 +522,7 @@ <string key="NSFrameSize">{212, 145}</string> <reference key="NSSuperview" ref="192579410"/> <reference key="NSNextKeyView" ref="685057119"/> - <int key="NSsFlags">528</int> + <int key="NSsFlags">512</int> <reference key="NSVScroller" ref="245346414"/> <reference key="NSHScroller" ref="353686052"/> <reference key="NSContentView" ref="685057119"/> @@ -14480,6 +14480,14 @@ IGRvIHlvdSB3YW50IHRvIGFkZCBmb3IgdGhpcyBmaWVsZD8</string> </object> <int key="connectionID">6285</int> </object> + <object class="IBConnectionRecord"> + <object class="IBOutletConnection" key="connection"> + <string key="label">delegate</string> + <reference key="source" ref="298095498"/> + <reference key="destination" ref="438574515"/> + </object> + <int key="connectionID">6286</int> + </object> </object> <object class="IBMutableOrderedSet" key="objectRecords"> <object class="NSArray" key="orderedObjects"> @@ -22711,8 +22719,8 @@ IGRvIHlvdSB3YW50IHRvIGFkZCBmb3IgdGhpcyBmaWVsZD8</string> <string>com.apple.InterfaceBuilder.CocoaPlugin</string> <reference ref="9"/> <string>com.apple.InterfaceBuilder.CocoaPlugin</string> - <string>{{60, 298}, {944, 550}}</string> - <string>{{60, 298}, {944, 550}}</string> + <string>{{61, 257}, {944, 550}}</string> + <string>{{61, 257}, {944, 550}}</string> <reference ref="9"/> <reference ref="9"/> <string>{{62, 352}, {845, 504}}</string> @@ -23680,7 +23688,7 @@ Y2hhbmdlIHRoZSBvcmRlcg</string> </object> </object> <nil key="sourceID"/> - <int key="maxID">6285</int> + <int key="maxID">6286</int> </object> <object class="IBClassDescriber" key="IBDocument.Classes"> <object class="NSMutableArray" key="referencedPartialClassDescriptions"> diff --git a/Source/TablesList.m b/Source/TablesList.m index f3c39d60..e5f4a35d 100644 --- a/Source/TablesList.m +++ b/Source/TablesList.m @@ -38,6 +38,7 @@ @implementation TablesList +#pragma mark - #pragma mark IBAction methods /** @@ -805,6 +806,7 @@ [[NSUserDefaults standardUserDefaults] setObject:[NSNumber numberWithBool:([tableInfoCollapseButton state] == NSOffState)] forKey:@"TableInformationPanelCollapsed"]; } +#pragma mark - #pragma mark Alert sheet methods /** @@ -839,6 +841,7 @@ [NSApp stopModalWithCode:[sender tag]]; } +#pragma mark - #pragma mark Additional methods /** @@ -1296,6 +1299,7 @@ } } +#pragma mark - #pragma mark Getter methods /** @@ -1426,6 +1430,7 @@ return statusLoaded; } +#pragma mark - #pragma mark Setter methods /** @@ -1491,6 +1496,7 @@ return YES; } +#pragma mark - #pragma mark Datasource methods /** @@ -1633,6 +1639,7 @@ } } +#pragma mark - #pragma mark TableView delegate methods /** @@ -1754,6 +1761,7 @@ return (row == 0) ? 25 : 17; } +#pragma mark - #pragma mark TabView delegate methods /** @@ -1806,6 +1814,7 @@ return [super validateMenuItem:menuItem]; } +#pragma mark - #pragma mark Table list filter interaction /** @@ -1928,6 +1937,16 @@ // [tablesListView selectRowIndexes:[NSIndexSet indexSetWithIndex:rowIndex] byExtendingSelection:NO]; } +#pragma mark - +#pragma mark SplitView Delegate Methods + +- (NSRect)splitView:(NSSplitView *)splitView effectiveRect:(NSRect)proposedEffectiveRect forDrawnRect:(NSRect)drawnRect ofDividerAtIndex:(NSInteger)dividerIndex +{ + return (splitView == tableListSplitView ? NSZeroRect : proposedEffectiveRect); +} + + +#pragma mark - #pragma mark Other /** |