Re: Binding an Array of Dictionaries
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