NSObjectController mapped to NSArrayController selection
NSObjectController mapped to NSArrayController selection
- Subject: NSObjectController mapped to NSArrayController selection
- From: Tom <email@hidden>
- Date: Wed, 23 Dec 2009 09:10:39 +0100
Hi all!
I have the following situation: NSArrayController which handles array of
Core Data objects. Then I want to map it's selection (there can only be one
selected at a time) to NSObjectController's contents and then use the object
controller for binding to the view. I want to use the object controller as
the entry point for the second nib, but I can't get it to work even in the
same nib. This is how I figure:
NSObjectController bindings (in IB):
- Content Object > (my NSArrayController) with controller key "selection"
A label:
- Value > (the NSObjectController) with controller key "content" and model
key "name"
However the label shows nothing no matter what selection is there.
NSArrayController's selection is properly updated - if I bind the label to
it's selection.name directly it works. What am I missing?
Thanks, Tom
_______________________________________________
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