On Mar 11, 2008, at 3:11 PM, David Ayers wrote:
David Ayers schrieb:
Tim McIntosh schrieb:
For example: [EMAIL PROTECTED]@count
With Cocoa's -[NSArray valueForKeyPath:] behavior, this would invoke
[object valueForKeyPath: @"[EMAIL PROTECTED]"] on each object in the
display group, then return the sum of the counts.
Actually, since Cocoa currently supports the aggregate keys, then
maybe
we need to move some of GDL2 KVC to -base... and then also -base's KVC
would need more context with valueForKeyPath: on NSArray
http://developer.apple.com/documentation/Cocoa/Reference/Foundation/Protocols/NSKeyValueCoding_Protocol/Reference/Reference.html
[http://tinyurl.com/2cq4rg]
I should've read this before responding to the previous message. ;)
Yes, Cocoa supports the aggregate keys, though it's approach is
apparently not extensible like the EOF design. Would it make sense to
treat this as a GNUstep extension and implement it in the -base
Additions? That way you would still override the Cocoa implementation
on Mac OS and maintain the ability to extend the set of aggregate keys.
-Tim
_______________________________________________
Gnustep-dev mailing list
Gnustep-dev@gnu.org
http://lists.gnu.org/mailman/listinfo/gnustep-dev