Re: Sharing a Bindings Controller between nibs
Re: Sharing a Bindings Controller between nibs
- Subject: Re: Sharing a Bindings Controller between nibs
- From: Graham Cox <email@hidden>
- Date: Wed, 15 Oct 2008 10:06:10 +1100
On 15 Oct 2008, at 9:30 am, Citizen wrote:
I have a master-detail interface, where the Detail interface is in a
separate nib from the main Master interface (so that different
Detail interfaces can be swapped in).
The main Master interface nib contains an NSTreeController which is
used to display an iTunes like source list.
But I can't help feeling that there must be a better way of doing
this? Any suggestions?
To my mind it doesn't make sense to have each detail interface in a
separate nib. The interface unit is the whole collection of views and
parts that make it up, and these should be in the same nib. Doing that
will simplify this in every way.
Having separate views for each detail is fine, but then your
controller has to manage swapping them in and out. Even simpler might
be using a tabless view to embed them in and simply switch tabs.
That's what I do in a few M/D interfaces and it's very easy to set up
and works a treat.
--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