Changes from Scott Christley. See ChangeLog Dec 04 and Nov 21

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@2032 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Andrew McCallum 1997-01-09 16:24:07 +00:00
parent 9d46f24e66
commit b3560edbc5
13 changed files with 285 additions and 43 deletions

View file

@ -360,17 +360,30 @@ static Class NSMutableSet_concrete_class;
- (void) unionSet: (NSSet*) other
{
[self notImplemented:_cmd];
id keys = [other objectEnumerator];
id key;
while ((key = [keys nextObject]))
[self addObject: key];
}
- (void) intersectSet: (NSSet*) other
{
[self notImplemented:_cmd];
id keys = [self objectEnumerator];
id key;
while ((key = [keys nextObject]))
if ([other containsObject:key] == NO)
[self removeObject:key];
}
- (void) minusSet: (NSSet*) other
{
[self notImplemented:_cmd];
id keys = [other objectEnumerator];
id key;
while ((key = [keys nextObject]))
[self removeObject:key];
}
- (void) removeAllObjects