Re: Binding/KVC : valueForKey: and NSDictionary (was: valid accessor for framework objects. (was: implicit and explicit invocation of description method))
Re: Binding/KVC : valueForKey: and NSDictionary (was: valid accessor for framework objects. (was: implicit and explicit invocation of description method))
- Subject: Re: Binding/KVC : valueForKey: and NSDictionary (was: valid accessor for framework objects. (was: implicit and explicit invocation of description method))
- From: mmalcolm crawford <email@hidden>
- Date: Wed, 6 Oct 2004 09:24:41 -0700
On Oct 6, 2004, at 3:01 AM, Max Barel wrote:
A private mail reply suggested that the @count array operator might
work for NSDictionary. IT DOES.
Sorry, that wasn't supposed to be private, I just sent it from the
wrong account and it got held... As I said in the original, it was a
Tuesday...
One might consider if an operator '@self', which would give access to
the dictionary (or array) using the default KVC implementation, might
be useful: Thus, rather than having to specify sn explicit '@count'
operator, one could use the key-path '@self.count' - and that would
work for any method(s) that might be added to arrays, dictionaries,
or other collection classes. Hmmm...
I agree with your objection and subscribe to the @self suggestion,
simple and efficient. Do you think I should update the enhancement
request?
If you want to mail me an update, I'll do that for you.
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