Re: splitview sizing question
Re: splitview sizing question
- Subject: Re: splitview sizing question
- From: Brock Brandenberg <email@hidden>
- Date: Sat, 16 Aug 2003 10:30:42 -0500
>
> Now I have a question which I hope is easy. I have a vertical
>
> splitview. It fills a tabview in a window. When I resize the window,
>
> the splitter moves so that the pane is cut proportionately. I would
>
> like resizing the window only to resize the right pane of the
>
> splitview, leaving the split bar in place relative to the window's
>
> left edge. Is there some IB sizing option to allow that?
>
>
After a little poking around, using AppKiDo, it looks like the Delegate
>
method: - (void)splitView:(NSSplitView *)sender
>
resizeSubviewsWithOldSize:(NSSize)oldSize is what you're looking for.
Since this happens after the splitview is resized, you should also look at
the other delegate methods that "constrain" the position while it's being
resized. You could conditionally constrain the sizes based on the current
user action - window dragging, slpitview dragging, etc. - by using other
notifications as an opportunity to change the constraint behavior.
Brock Brandenberg
----- industrial design @ www.bergdesign.com ------
_______________________________________________
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.