私はメインスレッドでこれをやっています:
CCAnimation *anim; //class variable
[NSThread detachNewThreadSelector:@selector(loadAimation) toTarget:self withObject:nil];
loadAimation では:
-(void) loadAnimation {
NSAutoreleasePool *autoreleasepool = [[NSAutoreleasePool alloc] init];
anim = [[CCAnimaton alloc] init];
[autoreleasepool drain];
}
そしてメインスレッドで私はそれを解放します:
[anim release];
ここで、メモリ管理に関してこれで問題ないかどうかを尋ねたいと思います。