I know what autorelease pools are and how they work so my question
isn't about that.
In my iPhone app I create a NSTimer to run at 60fps, in it I update a
bunch of stuff and draw opengl.
Currently I have:
-(void) timerLoop {
// create autorelease pool in case anything needs it
NSAutoreleasePool * pool = [[NSAutoreleasePool alloc] init];
<do all update stuff here and render>
// release pool
[pool release];
}
Do I need this autorelease pool here or does UIApplicationMain manage
that for every call of timerLoop?
_______________________________________________
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 arch...@mail-archive.com