• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Autorelease question
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Autorelease question


  • Subject: Re: Autorelease question
  • From: Robert Claeson <email@hidden>
  • Date: Fri, 4 Apr 2008 02:07:18 +0200


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 (email@hidden)

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:
This email sent to email@hidden


  • Follow-Ups:
    • Re: Autorelease question
      • From: Jens Alfke <email@hidden>
    • Re: Autorelease question
      • From: Dmitry Markman <email@hidden>
References: 
 >Autorelease question (From: Dmitry Markman <email@hidden>)

  • Prev by Date: Autorelease question
  • Next by Date: Re: Autorelease question
  • Previous by thread: Autorelease question
  • Next by thread: Re: Autorelease question
  • Index(es):
    • Date
    • Thread