nsautoreleasepool
Loading screens in games (ensuring animations don't stutter during the transition)
I have a cocos2d game, it performs at between 55 and 60fps once the game is loaded and running. However, due to using sprite sheets for both my menu\'s and game (one for each), there was a point of c[详细]
2023-02-14 06:26 分类:问答iOS detachNewThreadSelector leaking
I have a UIScrollView that I am loading some images in.Sometimes I am apply an effect to an image and it takes a bit to do the pre-loading so I decided to do this on a different thread using detachNew[详细]
2023-02-13 13:25 分类:问答NSBlockOperation and NSAutoreleasePool
Normally when you create an NSOperation su开发者_开发百科bclass you are responsible for creating and releasing an NSAutoreleasePool in the -main method.[详细]
2023-02-13 09:52 分类:问答return statement inside nsautoreleasepool scope
Lets say I have the below scenario: - (void)someFunction:(id)param { NSAutoreleasePool *pool = [[NSAutoreleasePool alloc] init];[详细]
2023-02-12 11:12 分类:问答SDL + OpenGL on OSX: NSAutoreleaseNoPool()
I\'m working on some cross-platform code using OpenGL and SDL, but have immediately run into issues on Mac OSX.[详细]
2023-02-10 22:19 分类:问答iPhone - What happens if retain after autorelease?
Do you know what happens 开发者_开发知识库if I retain an autoreleased object ? Will it be released or does the retain wins ?[详细]
2023-02-05 09:16 分类:问答Objective-C: Allocation in one thread and release in other
I am doing this in my Main Thread: CCAnimation *anim; //class variable [NSThread detachNewThreadSelector:@selector(loadAimation) toTarget:self withObject:nil];[详细]
2023-02-04 03:38 分类:问答Autoreleasing objects created in a thread and passed to another in objective-C
I have a method of an object which creates objects which are then passed to a method of another object in another thread, like this:[详细]
2023-02-03 08:53 分类:问答encountering numerous leaks on iphone device when using NSOperationQueue and trying to change sliders / pickers etc
encountering numerous leaks on iphone device when using NSOperationQueue and trying to change sliders / pickers etc.[详细]
2023-02-03 06:08 分类:问答how to properly use autoreleasepool for an nsoperationqueue
I have an app that I am refactoring and I just implemented multithreading so that the UI may run smoother.In the iphone simulator I don\'t get any leaks but testing on my iPhone 3G running on iOS 4.2[详细]
2023-02-01 11:09 分类:问答