gnustep-dev
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: fyi - Mac OS native GDL2 / GSWeb Installer package


From: Tim McIntosh
Subject: Re: fyi - Mac OS native GDL2 / GSWeb Installer package
Date: Wed, 12 Mar 2008 02:19:01 -0500

On Mar 11, 2008, at 3:11 PM, David Ayers wrote:

David Ayers schrieb:
Tim McIntosh schrieb:

For example:   address@hidden@count

With Cocoa's -[NSArray valueForKeyPath:] behavior, this would invoke
[object valueForKeyPath: @"address@hidden"] 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





reply via email to

[Prev in Thread] Current Thread [Next in Thread]