-- 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 (Cocoa-dev@lists.apple.com)

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to