From e6e2fe26d29659d805628114a0c1cd5f9d7ab5b4 Mon Sep 17 00:00:00 2001 From: rowanbeentje Date: Wed, 1 Aug 2012 00:17:54 +0000 Subject: - 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 --- Source/SPConnectionControllerDelegate.m | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) (limited to 'Source/SPConnectionControllerDelegate.m') 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 -- cgit v1.2.3