Weird NSSplitView problem
Weird NSSplitView problem
- Subject: Weird NSSplitView problem
- From: Mark T <email@hidden>
- Date: Wed, 27 Feb 2002 01:09:06 -0500
I'm having some problems with a collapsable splitview. I have the following
delegate methods set up to allow the lower of the 2 splitview subviews
collapse when appropriate. That much works fine. But when it uncollapses,
the previously collapsed subview(an NSBox containing various other
components) no longer fits inside the space available in the splitview pane.
As a result, some of the Box(about 20 or 30 pixels, I'd guess) are hidden
behind the divider and the upper pane of the splitview.
Here are the delegate methods:
- (BOOL)splitView:(NSSplitView *)sender canCollapseSubview:(NSView *)subview
{
if(subview == aBrowser)
return NO;
return YES;
}
- (float)splitView:(NSSplitView *)sender
constrainMaxCoordinate:(float)proposedMax ofSubviewAt:(int)offset
{
return proposedMax-100;
}
- (float)splitView:(NSSplitView *)sender
constrainMinCoordinate:(float)proposedMin ofSubviewAt:(int)offset
{
return proposedMin+100;
}
- (float)splitView:(NSSplitView *)splitView
constrainSplitPosition:(float)proposedPosition ofSubviewAt:(int)offset
{
return proposedPosition;
}
Has anyone seen this before/know how to fix it?
Thanks,
Mark T.
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.