• 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 a dictionary to a table view
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Binding a dictionary to a table view


  • Subject: Re: Binding a dictionary to a table view
  • From: Scott Ellsworth <email@hidden>
  • Date: Mon, 31 Oct 2005 10:20:39 -0800


On Oct 31, 2005, at 4:43 AM, John C. Randolph wrote:

On Oct 30, 2005, at 10:28 AM, Stefan Fisk wrote:


I've considered making a value transformer, but It seems a bit dodgy.


That's exactly how to do it. You'll need to transform the dictionary into an array of objects that represent key-value pairs. Bill Bumgarner showed me how to go about this some time ago. He implemented a value transformer and a KeyValuePair class which had keys for "key" and "value". -transformedValue: returned an array of these KeyValuePair objects.

What did you do about ordering? I had thought that the order of keys in a dictionary was arbitrary, and thus could change as objects were added/deleted.


Scott
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Follow-Ups:
    • Re: Binding a dictionary to a table view
      • From: "John C. Randolph" <email@hidden>
References: 
 >Binding a dictionary to a table view (From: Stefan Fisk <email@hidden>)
 >Re: Binding a dictionary to a table view (From: "John C. Randolph" <email@hidden>)

  • Prev by Date: Re: COCOA Frameworks for Relational Databases?
  • Next by Date: Re: Currently used locale
  • Previous by thread: Re: Binding a dictionary to a table view
  • Next by thread: Re: Binding a dictionary to a table view
  • Index(es):
    • Date
    • Thread