Referencing a controller from one NIB to another ?
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