• 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: Table with all Key-Value Pairs
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Table with all Key-Value Pairs


  • Subject: Re: Table with all Key-Value Pairs
  • From: Volker in Lists <email@hidden>
  • Date: Wed, 15 Apr 2009 14:44:49 +0200

Hi Gerriet,

I recently played around with NSDictionaryController and it was simpler than I thought. You should be able to use the selection of your array controller as source for your Dictionary controller, and then bind the columns of a table view to "key" and "value" of your dictionary controller. Both are available automagically. I connected the visibility of columns of a table view that way. My NSDictionary held key/value pairs created from the column name and the hidden state (bool). I have just yesterday thrown out the code, but it should be coded/connected easily in 5 or 10 minutes.

You may want to download an example from Apple ;-) : http://developer.apple.com/samplecode/DictionaryController/index.html

Cheers
Volker

Am 15.04.2009 um 09:51 schrieb Gerriet M. Denkmann:


What about NSDictionaryController? I read the documentation and have no idea, whether this would be of any help.
Looked into /Developer/Examples and did not find anything with NSDictionaryController.
Looked at the "Related sample code" section of NSDictionaryController, but there was none.

_______________________________________________

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: Table with all Key-Value Pairs
      • From: "Gerriet M. Denkmann" <email@hidden>
References: 
 >Table with all Key-Value Pairs (From: "Gerriet M. Denkmann" <email@hidden>)

  • Prev by Date: Re: sending email form Cocoa app using Mail
  • Next by Date: String Allocation inside drawRect:...
  • Previous by thread: Table with all Key-Value Pairs
  • Next by thread: Re: Table with all Key-Value Pairs
  • Index(es):
    • Date
    • Thread