aboutsummaryrefslogtreecommitdiffstats
path: root/Source/SPSplitView.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/SPSplitView.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/SPSplitView.m')
-rw-r--r--Source/SPSplitView.m16
1 files changed, 11 insertions, 5 deletions
diff --git a/Source/SPSplitView.m b/Source/SPSplitView.m
index b3c067d5..d8b6f8de 100644
--- a/Source/SPSplitView.m
+++ b/Source/SPSplitView.m
@@ -96,11 +96,6 @@
[super awakeFromNib];
}
- delegate = [super delegate];
- [super setDelegate:self];
-
- [self adjustSubviews];
-
[collapseToggleButton setState:(collapsibleSubviewCollapsed?NSOnState:NSOffState)];
}
@@ -117,6 +112,14 @@
}
#pragma mark -
+#pragma mark Delegate management
+
+- (void)setDelegate:(NSObject *)aDelegate
+{
+ delegate = aDelegate;
+}
+
+#pragma mark -
#pragma mark Collapsible subview management
/**
@@ -686,6 +689,9 @@
viewMinimumSizes = [[NSMutableArray alloc] initWithCapacity:l];
viewMaximumSizes = [[NSMutableArray alloc] initWithCapacity:l];
[self _ensureDefaultSubviewSizesToIndex:l-1];
+
+ delegate = [super delegate];
+ [super setDelegate:self];
}
/**