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.

Beta Software

This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.

Learn more about using Apple's beta software