discuss-gnustep
[Top][All Lists]
Advanced

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

Use of 'count' in KVC for NSArray and NSDictionary


From: Richard Frith-Macdonald
Subject: Use of 'count' in KVC for NSArray and NSDictionary
Date: Mon, 13 Mar 2006 13:54:12 +0000

I believe the behavior of Key Value Coding in MacOS-X has changed compared to the behavior currently implemented in the GNUstep base library for classes like NSArray and NSDictionary. Is there any reason why we should not change to maintain/regain compatibility? The old behavior was to return the count of objects in the collection, but the new behavior seems to be to return an array containing the results of calling -valueForKey:@"count" on all the objects.

As far as I can see, code depending on the old behavior (if there is any) could use a category to implement it, but I don't use this stuff myself, so I was wondering if anyone had a better idea.




reply via email to

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