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 PROTECTED]> 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 protected])

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:
http://lists.apple.com/mailman/options/cocoa-dev/cocorub%40gmail.com

This email sent to [EMAIL PROTECTED]

_______________________________________________

Cocoa-dev mailing list ([email protected])

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:
http://lists.apple.com/mailman/options/cocoa-dev/bwalkin%40gmail.com

This email sent to [EMAIL PROTECTED]

_______________________________________________

Cocoa-dev mailing list ([email protected])

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]

Reply via email to