bug-gnustep
[Top][All Lists]
Advanced

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

[bug #22565] EOKeyValueCoding: Support modern Cocoa KVC semantics for NS


From: Richard Frith-Macdonald
Subject: [bug #22565] EOKeyValueCoding: Support modern Cocoa KVC semantics for NSArray aggregate functions
Date: Thu, 13 Mar 2008 12:49:51 +0000
User-agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X; en-us) AppleWebKit/523.15.1 (KHTML, like Gecko) Version/3.0.4 Safari/523.15

Follow-up Comment #2, bug #22565 (project gnustep):

I've just been reworking all the default keypath methods to operaate
recursively the way MacOS-X appears to do.  So I'm worried by the comment:

To the requested feature I believe we need to replace the implementation of:

else 
{ 
NSString *key = [keyPath substringToIndex: r.location]; 
NSString *path = [keyPath substringFromIndex: NSMaxRange(r)]; 
result = [[self valueForKey: key] valueForKeyPath: path]; 
} 
to /do the right thing/... I'm still working on that. 

As that code fragment is essentially what I thought *was* doing the right
thing, and all my changes follow that pattern.

What is it that you think this is doing wrong?
As far as I can see, this pattern isolates all the handling of the special
'@' prefixed keys into the overridden methods in NSArray, NSSet and
NSDictionary... which seems a clean solution.

Am I missing something?

    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?22565>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/





reply via email to

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