From 5b223789a022a89328c35905ffe3c9fe9c9421bd Mon Sep 17 00:00:00 2001 From: stuconnolly Date: Fri, 28 Aug 2009 21:11:07 +0000 Subject: Give the connection view's split view maximum and minimum sizes. --- Source/SPConnectionController.m | 17 +++++++++++++++-- 1 file changed, 15 insertions(+), 2 deletions(-) (limited to 'Source/SPConnectionController.m') 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 -- cgit v1.2.3