Re: Table with all Key-Value Pairs
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