Skip navigation.
 
mlRe: Binding/KVC : valueForKey: and NSDictionary (was: valid accessor for framework objects. (was: implicit and explicit invocation of description method))
FROM : mmalcolm crawford
DATE : Wed Oct 06 18:24:41 2004

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