do i need to create autorelease pool?
do i need to create autorelease pool?
- Subject: do i need to create autorelease pool?
- From: Memo Akten <email@hidden>
- Date: Wed, 25 Feb 2009 03:28:59 +0000
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 (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