mirror of
https://github.com/gnustep/libs-base.git
synced 2025-05-11 16:50:42 +00:00
([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:
parent
0f870ad94f
commit
e11befe95e
1 changed files with 16 additions and 8 deletions
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue