aboutsummaryrefslogtreecommitdiffstats
path: root/Source/SPBundleEditorController.m
diff options
context:
space:
mode:
authorrowanbeentje <rowan@beent.je>2012-07-30 20:04:10 +0000
committerrowanbeentje <rowan@beent.je>2012-07-30 20:04:10 +0000
commited16bf078249b4b474a231ba487702f4f7d9a13b (patch)
tree52a6b0bb364acca7cc62904bdfbe771b5978242d /Source/SPBundleEditorController.m
parent62621d6fde334a8b61f43925d65c754860db9a5a (diff)
downloadsequelpro-ed16bf078249b4b474a231ba487702f4f7d9a13b.tar.gz
sequelpro-ed16bf078249b4b474a231ba487702f4f7d9a13b.tar.bz2
sequelpro-ed16bf078249b4b474a231ba487702f4f7d9a13b.zip
- Tweak SPSplitView to no longer treat non-resizable split view children as max/min constraints when dragging the splitview divider. This improves default behaviour and also allow use of the non-resizable split view children to control relative autoresizing when resizing a parent view
- Tweak Bundle Editor to no longer require split view delegate controls to control resizing, instead making the first split view child non-resizable in IB
Diffstat (limited to 'Source/SPBundleEditorController.m')
-rw-r--r--Source/SPBundleEditorController.m15
1 files changed, 0 insertions, 15 deletions
diff --git a/Source/SPBundleEditorController.m b/Source/SPBundleEditorController.m
index e94303fb..a23c3183 100644
--- a/Source/SPBundleEditorController.m
+++ b/Source/SPBundleEditorController.m
@@ -1213,21 +1213,6 @@
}
#pragma mark -
-#pragma mark Split view delegates
-
-- (void)splitView:(NSSplitView *)theSplitView resizeSubviewsWithOldSize:(NSSize)oldSize
-{
- NSView *nonResizableSubview = [[theSplitView subviews] objectAtIndex:0];
- NSView *resizableSubview = [[theSplitView subviews] objectAtIndex:1];
-
- CGFloat nonResizableSubviewTotal = [nonResizableSubview frame].size.width;
- nonResizableSubviewTotal += [theSplitView dividerThickness];
-
- [nonResizableSubview setFrameSize:NSMakeSize([nonResizableSubview frame].size.width, [splitView frame].size.height)];
- [resizableSubview setFrameSize:NSMakeSize([theSplitView frame].size.width - nonResizableSubviewTotal, [splitView frame].size.height)];
-}
-
-#pragma mark -
#pragma mark TableView delegates
- (NSInteger)numberOfRowsInTableView:(NSTableView *)aTableView