Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.
You are familiar with the autorelease pool from previous program examples in this second part of the book. When dealing with Foundation programs, you must set up this pool to use the Foundation objects. This pool is where the system keeps track of your objects for later release. As you’ve seen, your application can set up the pool with a call like so:
NSAutoreleasePool * pool = [[NSAutoreleasePool alloc] init];