aboutsummaryrefslogtreecommitdiffstats
path: root/Source
diff options
context:
space:
mode:
authorstuconnolly <stuart02@gmail.com>2009-08-28 21:11:07 +0000
committerstuconnolly <stuart02@gmail.com>2009-08-28 21:11:07 +0000
commit5b223789a022a89328c35905ffe3c9fe9c9421bd (patch)
tree6beeee0df9ffb425f53638e4d6ae531a226cf5b1 /Source
parent7866f392fed3e2b57998701dbdae5275e7c80d80 (diff)
downloadsequelpro-5b223789a022a89328c35905ffe3c9fe9c9421bd.tar.gz
sequelpro-5b223789a022a89328c35905ffe3c9fe9c9421bd.tar.bz2
sequelpro-5b223789a022a89328c35905ffe3c9fe9c9421bd.zip
Give the connection view's split view maximum and minimum sizes.
Diffstat (limited to 'Source')
-rw-r--r--Source/SPConnectionController.m17
1 files changed, 15 insertions, 2 deletions
diff --git a/Source/SPConnectionController.m b/Source/SPConnectionController.m
index 5d93a4f4..50256936 100644
--- a/Source/SPConnectionController.m
+++ b/Source/SPConnectionController.m
@@ -844,7 +844,6 @@
}
}
-
#pragma mark -
#pragma mark NSSplitView delegate methods
@@ -857,9 +856,23 @@
[contentView setPosition:[[[connectionSplitView subviews] objectAtIndex:0] frame].size.width ofDividerAtIndex:0];
}
+/**
+ * Return the maximum possible size of the splitview.
+ */
+- (float)splitView:(NSSplitView *)sender constrainMaxCoordinate:(float)proposedMax ofSubviewAt:(int)offset
+{
+ return (proposedMax - 450);
+}
-@end
+/**
+ * Return the minimum possible size of the splitview.
+ */
+- (float)splitView:(NSSplitView *)sender constrainMinCoordinate:(float)proposedMin ofSubviewAt:(int)offset
+{
+ return (proposedMin + 80);
+}
+@end
#pragma mark -
#pragma mark NSView subclass - flipped view for simpler drawing