(Preliminary Documentation) Copyright ã1994 by NeXT Computer, Inc.  All Rights Reserved.

NSMutableSet 

Inherits From:	NSSet : NSObject 

Conforms To:	NSCopying
NSCoding
NSMutableCopying
NSObject

Declared In:	foundation/NSSet.h 

Allocating and Initializing an NSMutableSet

+ (id)allocWithZone:(NSZone *)zone	Creates and returns an uninitialized set object in zone.
+ (id)setWithCapacity:(unsigned int)numItems	Creates and returns a set object, giving it enough allocated memory to hold numItems objects.
- (id)initWithCapacity:(unsigned int)numItems	Initializes a newly allocated set object, giving it enough allocated memory to hold numItems objects.

Adding Objects	

- (void)addObject:(id)anObject	Adds anObject to the set, unless anObject is equal to some object already in the set.
- (void)addObjectsFromArray:(NSArray *)array	Adds to the set all the objects in array, by calling addObject: for each one.
- (void)unionSet:(NSSet *)anotherSet 	Adds to the receiving set all the objects in anotherSet, by calling addObject: for each one.

Removing Objects

- (void)intersectSet:(NSSet *)anotherSet	Removes from the receiving set every object that's not equal to any object in anotherSet, by calling removeObject: for each one.
- (void)minusSet:(NSSet *)anotherSet	Removes from the receiving set every object that's equal to some object in anotherSet, by calling removeObject: for each one.
- (void)removeAllObjects	Empties the set of all its elements. (This method doesn't call removeObject:.)
- (void)removeObject:(id)anObject	Removes the object that's equal to anObject, if any is.