• 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
Re: NSArrayController/Modal dialog/KVO Gordian knot
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: NSArrayController/Modal dialog/KVO Gordian knot
      • From: vincent habchi <email@hidden>
References: 
 >NSArrayController/Modal dialog/KVO Gordian knot (From: vincent habchi <email@hidden>)
 >Re: NSArrayController/Modal dialog/KVO Gordian knot (From: Keary Suska <email@hidden>)
 >Re: NSArrayController/Modal dialog/KVO Gordian knot (From: vincent habchi <email@hidden>)

  • Prev by Date: Re: userDefaultsDidChange is causing a loop with dependent checkbox values
  • Next by Date: Re: applicationShouldTerminate gets called on with no edited documents
  • Previous by thread: Re: NSArrayController/Modal dialog/KVO Gordian knot
  • Next by thread: Re: NSArrayController/Modal dialog/KVO Gordian knot
  • Index(es):
    • Date
    • Thread