[Previous]
[Up]
[Next]
NSMutableSet
Authors
- Richard Frith-Macdonald
-
Version: $Revision$
Date: $Date$
Declared in: Foundation/NSSet.h
Inherits from: NSSet
Conforms to: NSCoding
Instance Variables
Methods
Class Methods
+ (id) allocWithZone: (NSZone*)zone;
+ (id) setWithCapacity: (unsigned int)numItems;
Instances Methods
- (void) addObject: (id)anObject;
Adds the specified object to the receiver.
The object is retained by the set.
- (void) addObjectsFromArray: (NSArray*)anArray;
Adds all the objects in the array to the receiver.
- (id) initWithCapacity: (unsigned int)numItems;
Initialises the receiver to be ready to have the specified number
of items added to it. Additions of items to a set initialised
with an appropriate capacity will be more efficient than addition
of items otherwise.
- (void) intersectSet: (NSSet*)otherSet;
Removes from the receiver all the objects it contains
which are not also in otherSet.
- (void) minusSet: (NSSet*)otherSet;
Removes from the receiver all the objects that are in
otherSet.
- (void) removeAllObjects;
Removes all objects from the receiver.
- (void) removeObject: (id)anObject;
Removes the specified object from the receiver.
- (void) setSet: (NSSet*)otherSet;
Standards: GNUstep MacOS-X NotOpenStep
Removes all objects from the receiver then adds the
objects from otherSet. If the receiver is
otherSet, the method has no effect.
- (void) unionSet: (NSSet*)otherSet;
Adds all the objects from etherSet to the receiver.