• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Sharing a Bindings Controller between nibs
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: Sharing a Bindings Controller between nibs
      • From: Ron Lue-Sang <email@hidden>
References: 
 >Sharing a Bindings Controller between nibs (From: Citizen <email@hidden>)

  • Prev by Date: VCards & Address Book -- Preferred Telephone Number
  • Next by Date: Re: VCards & Address Book -- Preferred Telephone Number
  • Previous by thread: Sharing a Bindings Controller between nibs
  • Next by thread: Re: Sharing a Bindings Controller between nibs
  • Index(es):
    • Date
    • Thread