• 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: Binding an Array of Dictionaries
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Binding an Array of Dictionaries


  • Subject: Re: Binding an Array of Dictionaries
  • From: Keary Suska <email@hidden>
  • Date: Sun, 13 Dec 2009 09:56:54 -0700

On Dec 13, 2009, at 9:50 AM, Keary Suska wrote:

>> Well, not quite.
>> As I stated in some previous post in this thread, the NSDictionaryController (bound to "currentDictionary") fills an editable NSTableView.
>> And if the user edits some key or value in this NSTableView the NSDictionaryController does NOT update "currentDictionary", but replaces it with another NSDictionary.
>
> Forgot about that. Instead, I would recommend:
>
> 0. observe NSArrayController's "selectionIndex"

Actually, you could observe any observable property that expresses the selection. Doesn't really matter. You could even use a table view delegate method if you wanted and throw out observation altogether.

HTH,

Keary Suska
Esoteritech, Inc.
"Demystifying technology for your home or business"

_______________________________________________

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

References: 
 >Binding an Array of Dictionaries (From: "Gerriet M. Denkmann" <email@hidden>)
 >Re: Binding an Array of Dictionaries (From: Keary Suska <email@hidden>)
 >Re: Binding an Array of Dictionaries (From: "Gerriet M. Denkmann" <email@hidden>)
 >Re: Binding an Array of Dictionaries (From: Keary Suska <email@hidden>)
 >Re: Binding an Array of Dictionaries (From: "Gerriet M. Denkmann" <email@hidden>)
 >Re: Binding an Array of Dictionaries (From: Keary Suska <email@hidden>)

  • Prev by Date: Re: Binding an Array of Dictionaries
  • Next by Date: NSCoder with network
  • Previous by thread: Re: Binding an Array of Dictionaries
  • Next by thread: Re: Binding an Array of Dictionaries
  • Index(es):
    • Date
    • Thread