Instance Method


Adds a given object to the receiver


- (void)addObject:(id)anObject;



The object to add to the receiver.


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