• 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: Fri, 11 Dec 2009 08:54:26 -0700

On Dec 11, 2009, at 12:45 AM, Gerriet M. Denkmann wrote:

> I have a window with an NSTableView which is bound to an NSArrayController which has as content an NSMutableArray called "theArrayOfDictionaries".
> Works fine.
>
> "theArrayOfDictionaries" contains NSMutableDictionaries.
> So I added another NSTableView to my window, bound to an NSDictionaryController, which has it's content bound to NSArrayController.selection.
>
> But the documentation says about selection: "proxy object representing the receiver’s selection".
> And it's no surprise that I get an exception: "Cannot create NSDictionary from object [...] of class _NSControllerObjectProxy"
>
> Well, everything behaves as documented - no reason to complain.
>
> But: how to I populate my NSDictionaryController with the NSMutableDictionary currently selected in my NSArrayController?
> And also: make sure that any changes done in this current dictionary (the NSTableViews will be editable) get back into "theArrayOfDictionaries"?

You will have to maintain the currently selected object in your model.

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

  • Follow-Ups:
    • Re: Binding an Array of Dictionaries
      • From: "Gerriet M. Denkmann" <email@hidden>
References: 
 >Binding an Array of Dictionaries (From: "Gerriet M. Denkmann" <email@hidden>)

  • Prev by Date: Re: [iPhone] Animate tableView reloadData
  • Next by Date: Outing the poseAsClass: poseur
  • Previous by thread: Binding an Array of Dictionaries
  • Next by thread: Re: Binding an Array of Dictionaries
  • Index(es):
    • Date
    • Thread