Type Method

addObject:

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

Declaration

+ (void)addObject:(id)anObject;

Parameters

object

The object to add to the active autorelease pool in the current thread.

Discussion

The same object may be added several times to the active pool and, when the pool is deallocated, it 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 receiver