• 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: Stefan Fisk <email@hidden>
  • Date: Wed, 2 Nov 2005 19:38:59 +0100

What happens when you do it my way is that if there's multiple objects with the same key the object that is last in the array replaces the others. How would you suggest implementing it to be a "one size fits all" solution? I could see making a KeyedValue class with a validation method for the key, seems like the solution that would fit best with the general scheme of bindings.

2 nov 2005 kl. 19.24 skrev mmalcolm crawford:


On Nov 2, 2005, at 5:47 AM, Stefan Fisk wrote:

My solution consists of only a NSValueTransformer, but still it supports editing of the array without any (from what I've experienced at least) oddities.

One trivial case will be if the user attempts to set two key names to be the same...
Certainly this could be considered user error, but a robust solution should guard against this.


mmalc

_______________________________________________
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


_______________________________________________ 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
References: 
 >Re: Binding a dictionary to a table view (From: mmalcolm crawford <email@hidden>)
 >Re: Binding a dictionary to a table view (From: Stefan Fisk <email@hidden>)
 >Re: Binding a dictionary to a table view (From: mmalcolm crawford <email@hidden>)

  • Prev by Date: Problems with Attributed Strings and NSTextField
  • Next by Date: Re: Subclassing NSSearchFieldCell
  • Previous by thread: Re: Binding a dictionary to a table view
  • Next by thread: Challenge 2 in Chapter of A. Hillegass's Book
  • Index(es):
    • Date
    • Thread