* EOControl/EOKeyValueCoding.m ([NSArray-computeCountForKey:):

Handle extended aggregate keys.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gdl2/trunk@26333 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
ayers 2008-03-17 17:46:14 +00:00
parent 43f9854aa8
commit 0b111820ce
2 changed files with 7 additions and 2 deletions

View file

@ -1,7 +1,10 @@
2008-03-06 David Ayers <ayers@fsfe.org>
2008-03-17 David Ayers <ayers@fsfe.org>
* EOControl/EOClassDescription.m ([NSObject-classDescriptionForClass:]):
Post notification only the first time the description is needed.
* EOControl/EOKeyValueCoding.m ([NSArray-computeCountForKey:):
Handle extended aggregate keys.
2008-03-16 Matt Rice <ratmice@gmail.com>

View file

@ -442,10 +442,12 @@ initialize(void)
- (id)computeCountForKey: (NSString *)key
{
NSArray *array;
id result;
EOFLOGObjectFnStartCond(@"EOKVC");
result = [NSDecimalNumber numberWithUnsignedInt: [self count]];
array = key ? [self valueForKeyPath: key] : self;
result = [NSDecimalNumber numberWithUnsignedInt: [array count]];
EOFLOGObjectFnStopCond(@"EOKVC");
return result;