Re: NSSplitView question - how to implement my own "adjustViews" style method
Re: NSSplitView question - how to implement my own "adjustViews" style method
- Subject: Re: NSSplitView question - how to implement my own "adjustViews" style method
- From: Graham Cox <email@hidden>
- Date: Tue, 03 Jul 2012 10:14:21 +1000
On 03/07/2012, at 12:21 AM, Motti Shneor wrote:
> I really need an advice here.
This will sound flippant but it's not meant to be: implement your own split view.
NSSplitView is the most bizarre piece of design and difficult to get to behave just how you want even in simple cases like having two views, one which should stay fixed when the overall view is resized. This behaviour is likely to be the most commonly needed but is not the default for NSSplitView. The delegate methods are weird and don't get called in every case. Once you add in the complexity of dynamic views, your head is going to be spinning.
Rolling your own is not that hard, and can be designed with your use-case in mind.
--Graham
_______________________________________________
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