Re: Binding a dictionary to a table view
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