Re: Resizing NSSplitView
Re: Resizing NSSplitView
- Subject: Re: Resizing NSSplitView
- From: Andy Lee <email@hidden>
- Date: Thu, 1 Aug 2002 23:36:20 -0400
At 1:23 PM +0200 8/1/02, Sylvain Leroux wrote:
According to the doc:
> Programmatically, you adjust the relative height of subviews
> simply by modifying the frame of each of the subviews.
But that no seems to work...
I think you need to modify the frames of *all* the subviews, in a way
that preserves the total size. So if you remove 10 pixels from one
subview, you should add 10 pixels to the other. Then call
-adjustSubviews so the splitter will redraw correctly.
--Andy
_______________________________________________
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.