• 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
Referencing a controller from one NIB to another ?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Referencing a controller from one NIB to another ?


  • Subject: Referencing a controller from one NIB to another ?
  • From: Guillaume Laurent <email@hidden>
  • Date: Mon, 30 Mar 2009 22:11:51 +0200

Following up on my question about putting several windows in a single NIB, as it seems it's a bad idea, I'm now confronted to binding controllers from one NIB to another.

To give a quick example, take the TwoManyControllers sample :

http://developer.apple.com/SampleCode/TwoManyControllers/index.html

A main NSArrayController holds the list of top level elements to display them in an NSTable, each of those elements is itself an array, to which a secondary NSArrayController is bound.

Problem, how do you do that when the first NSArrayController is in the main NIB, and the secondary one in the other ?

I was looking for a way to define the first NSArrayController in both NIBs, except that in the 2nd NIB it would reference the one in the first, rather than being instantiated on its own, but I don't see how that's doable.

Any ideas ?

--
Guillaume
http://telegraph-road.org





_______________________________________________

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


References: 
 >several windows in a NIB ? (From: Guillaume Laurent <email@hidden>)
 >Re: several windows in a NIB ? (From: "I. Savant" <email@hidden>)
 >Re: several windows in a NIB ? (From: "Sean McBride" <email@hidden>)

  • Prev by Date: Re: NSTableColumn's sort key in Interface Builder
  • Next by Date: Re: Best Strategy to Control iTunes
  • Previous by thread: Re: several windows in a NIB ?
  • Next by thread: Re: several windows in a NIB ?
  • Index(es):
    • Date
    • Thread