([NSGSet -isEqual:]): Added method.

([NSGMutableSet -isEqual:]): Likewise.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@654 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Andrew McCallum 1995-10-30 01:51:46 +00:00
parent 0f870ad94f
commit e11befe95e

View file

@ -71,9 +71,6 @@
{ {
static int done = 0; static int done = 0;
/* xxx This class not yet ready for action. */
[self notImplemented:_cmd];
if (!done) if (!done)
{ {
done = 1; done = 1;
@ -86,8 +83,11 @@
- initWithObjects: (id*)objects - initWithObjects: (id*)objects
count: (unsigned)count count: (unsigned)count
{ {
return [self initWithType:@encode(id) [self initWithType:@encode(id)
capacity:count]; capacity:count];
while (count--)
[self addObject:objects[count]];
return self;
} }
- member: anObject - member: anObject
@ -101,6 +101,11 @@
autorelease]; autorelease];
} }
/* To deal with behavior over-enthusiasm. Will be fixed later. */
- (BOOL) isEqual: other
{
return [super isEqual:other];
}
@end @end
@implementation NSGMutableSet @implementation NSGMutableSet
@ -109,9 +114,6 @@
{ {
static int done = 0; static int done = 0;
/* xxx This class not yet ready for action. */
[self notImplemented:_cmd];
if (!done) if (!done)
{ {
done = 1; done = 1;
@ -141,4 +143,10 @@
[self removeElement:anObject]; [self removeElement:anObject];
} }
/* To deal with behavior over-enthusiasm. Will be fixed later. */
- (BOOL) isEqual: other
{
return [super isEqual:other];
}
@end @end