Re: fixed width of a pane in NSSplitView
Re: fixed width of a pane in NSSplitView
- Subject: Re: fixed width of a pane in NSSplitView
- From: Jens Alfke <email@hidden>
- Date: Fri, 28 Mar 2008 16:00:58 -0700
On 28 Mar '08, at 3:34 PM, Vladimir Sokolov wrote:
How can I make fixed width of the left pane in the NSSplitView?
You need to implement the method
- (void)splitView:(NSSplitView *)sender resizeSubviewsWithOldSize:
(NSSize)oldSize
in the splitview's delegate. To do what you want, you basically need
to compute the difference in width between the old and new sizes of
the splitview, and add that amount to the width of the subview at
index 1. (You also need to change the heights of both subviews to
match the new size's height.)
—Jens
Attachment:
smime.p7s
Description: S/MIME cryptographic signature
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden