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

Table with all Key-Value Pairs


  • Subject: Table with all Key-Value Pairs
  • From: "Gerriet M. Denkmann" <email@hidden>
  • Date: Wed, 15 Apr 2009 14:51:07 +0700

I have "My Array Controller" which displays it's items (NSDictionaries) in an NSTableView.
So far so good.


But now I want to have another NSTableView which has two columns "Key" and "Value" and which shows all Key-Value-pairs of "My Array Controller".selection (or "My Array Controller".selectedObjects ?).
Or some message like: "Multiple Selection" or "Empty Selection".


How to do this with bindings? (I could do this with a data source, but I want to learn about bindings).

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.


Kind regards,

Gerriet.

_______________________________________________

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: Volker in Lists <email@hidden>
  • Prev by Date: Spell check based on text color
  • Next by Date: Re: Issues with BAS sample on 10.4.11
  • Previous by thread: Spell check based on text color
  • Next by thread: Re: Table with all Key-Value Pairs
  • Index(es):
    • Date
    • Thread