Re: Fixed width of left pane in NSSplitView
Re: Fixed width of left pane in NSSplitView
- Subject: Re: Fixed width of left pane in NSSplitView
- From: Brandon Walkin <email@hidden>
- Date: Mon, 8 Dec 2008 04:26:06 -0500
Feel free to use the -splitView:resizeSubviewsWithOldSize: delegate
method implementation from this class:
http://www.bitbucket.org/bwalkin/bwtoolkit/src/tip/BWAnchoredButtonBar.m
It keeps all views except the right most view at a constant width when
the window is resized.
To incorporate this in your app, just copy the method into a class of
yours and set it as the split view's delegate using the -setDelegate:
method. You can read more about delegation in the docs: http://developer.apple.com/DOCUMENTATION/Cocoa/Conceptual/CocoaFundamentals/CommunicatingWithObjects/chapter_6_section_4.html
Cheers,
Brandon
On 8-Dec-08, at 4:07 AM, Jushin wrote:
Could you tell me more in detail?
It makes me more confusing :(
Sorry for novice question.
On Mon, Dec 8, 2008 at 3:29 AM, Benjamin Dobson
<email@hidden> wrote:
On 8 Dec 2008, at 08:03:51, Jushin wrote:
However, I have no idea how to do this. Should I create a subclass
of
NSSplitView?
No. Just wire up a different object as the delegate for your split
view.
_______________________________________________
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
_______________________________________________
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
_______________________________________________
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