• 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
nested autorelease pools?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

nested autorelease pools?


  • Subject: nested autorelease pools?
  • From: "Brian O'Brien" <email@hidden>
  • Date: Tue, 1 Nov 2005 13:16:59 -0700

Does this look valid to you?

-(id) init
{
	self = [super init];
	mypool = [[NSAutoreleasePool alloc] init];
	return self;
}

-(void) dealloc
{
	[mypool release];
	[super dealloc];
}

-(void) mymethod
{
	for (i=0; i < 100; ++i)
	{
		NSAutoreleasePool *p = [[NSAutoreleasePool alloc] init];
		... // Do some stuff
		[p release];
	}
}


_______________________________________________ Do not post admin requests to the list. They will be ignored. Cocoa-dev mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: This email sent to email@hidden
  • Follow-Ups:
    • Re: nested autorelease pools?
      • From: Uli Kusterer <email@hidden>
    • Re: nested autorelease pools?
      • From: j o a r <email@hidden>
  • Prev by Date: CoreRecipesApp and 10.4.3
  • Next by Date: Re: nested autorelease pools?
  • Previous by thread: Re: CoreRecipesApp and 10.4.3
  • Next by thread: Re: nested autorelease pools?
  • Index(es):
    • Date
    • Thread