Re: NSArrayController/Modal dialog/KVO Gordian knot
Re: NSArrayController/Modal dialog/KVO Gordian knot
- Subject: Re: NSArrayController/Modal dialog/KVO Gordian knot
- From: Reinhard Segeler <email@hidden>
- Date: Sun, 13 Jun 2010 09:36:34 +0200
-- Reinhard
Am 12.06.2010 um 17:30 schrieb vincent habchi:
the color field should be set to :
theDictionary.selection.value.color;
I am not familiar with the NSDictionaryController but the keypath
looks a bit strange:
if theDictionary is what the name says, then a member selection calls
a member value calls a member color. That's not the case, isn't it?
In my code I bind a popupMenu by using the following path:
self.dict.index to select a menu item by index. - no Controller is
used here.
I looked in my literature where I found the following:
Bind to: aDictController
Controller key: selection
Model key path: name -> in your case color?
Depending on your idea, I think that the "fruitName" key or value of
the fruitDictController must be connected to the key "fruitName" of
the colorDictController to get the desired color.
_______________________________________________
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