Instance Method

addObject:

Adds a given object to the receiver

Declaration

- (void)addObject:(id)anObject;

Parameters

object

The object to add to the receiver.

Discussion

The same object may be added several times to the same pool; when the pool is deallocated, the object will receive a release message for each time it was added.

Normally you don’t invoke this method directly—you send autorelease to object instead.

See Also

Adding an Object to a Pool

+ addObject:

Adds a given object to the active autorelease pool in the current thread.