nested autorelease pools?
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