mirror of
https://github.com/gnustep/libs-base.git
synced 2025-04-22 16:33:29 +00:00
([NSSet -anyObject]): Implemented.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@1872 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
e1f53b0bc0
commit
d3f7feddf5
1 changed files with 7 additions and 1 deletions
|
@ -201,7 +201,13 @@ static Class NSMutableSet_concrete_class;
|
|||
|
||||
- anyObject
|
||||
{
|
||||
return [self notImplemented:_cmd];
|
||||
if ([self count] == 0)
|
||||
return nil;
|
||||
else
|
||||
{
|
||||
id e = [self objectEnumerator];
|
||||
return [e nextObject];
|
||||
}
|
||||
}
|
||||
|
||||
- (BOOL) containsObject: anObject
|
||||
|
|
Loading…
Reference in a new issue