aboutsummaryrefslogtreecommitdiffstats
path: root/Source/SPConnectionControllerDelegate.m
diff options
context:
space:
mode:
authorrowanbeentje <rowan@beent.je>2012-08-01 00:17:54 +0000
committerrowanbeentje <rowan@beent.je>2012-08-01 00:17:54 +0000
commite6e2fe26d29659d805628114a0c1cd5f9d7ab5b4 (patch)
treedd125ddd17a68d07495d8935178f219a4e0e081a /Source/SPConnectionControllerDelegate.m
parented16bf078249b4b474a231ba487702f4f7d9a13b (diff)
downloadsequelpro-e6e2fe26d29659d805628114a0c1cd5f9d7ab5b4.tar.gz
sequelpro-e6e2fe26d29659d805628114a0c1cd5f9d7ab5b4.tar.bz2
sequelpro-e6e2fe26d29659d805628114a0c1cd5f9d7ab5b4.zip
- Remove all BWToolKit elements in the connection view, replacing with standard equivalents and SPSplitView
- Replace the "Add" action menu on the connection view with two buttons for easier use and to avoid having to set up more popup buttons - Improve SPSplitView's handling of delegates set through code - Update localisable strings
Diffstat (limited to 'Source/SPConnectionControllerDelegate.m')
-rw-r--r--Source/SPConnectionControllerDelegate.m9
1 files changed, 3 insertions, 6 deletions
diff --git a/Source/SPConnectionControllerDelegate.m b/Source/SPConnectionControllerDelegate.m
index 286dcea6..d8f82a02 100644
--- a/Source/SPConnectionControllerDelegate.m
+++ b/Source/SPConnectionControllerDelegate.m
@@ -65,18 +65,15 @@ static NSString *SPDatabaseImage = @"database-small";
#ifndef SP_REFACTOR
-- (NSRect)splitView:(NSSplitView *)splitView additionalEffectiveRectOfDividerAtIndex:(NSInteger)dividerIndex
-{
- return [connectionSplitViewButtonBar splitView:splitView additionalEffectiveRectOfDividerAtIndex:dividerIndex];
-}
-
/**
* When the split view is resized, trigger a resize in the hidden table
* width as well, to keep the connection view and connected view in sync.
*/
- (void)splitViewDidResizeSubviews:(NSNotification *)notification
{
- [databaseConnectionView setPosition:[[[connectionSplitView subviews] objectAtIndex:0] frame].size.width ofDividerAtIndex:0];
+ if (initComplete) {
+ [databaseConnectionView setPosition:[[[connectionSplitView subviews] objectAtIndex:0] frame].size.width ofDividerAtIndex:0];
+ }
}
#endif