On 4 Apr 2008, at 02:03, Dmitry Markman wrote:
Hi
How can I tell that default autorelease pool exists?

Dmitry

The default autorelease pool is created in the <project name>.m file of a newly created project. If you have messed around too much with that file, you might have deleted it.

The interesting lines are:

int main (int argc, const char * argv[]) {
    NSAutoreleasePool * pool = [[NSAutoreleasePool alloc] init];
    ...
    [pool drain];
}
_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]

Reply via email to