i have try TBXML in iOS 5.. but as you know, autorelease is not use again in iOS 5.. so it\'s give me error when i start to run the apps..
Please have a look at the code below: - (NSArray *)requestEntities:(NSString *)entityName { NSFetchRequest *fetchRequest = [[NSFetchRequest alloc] init];
I have an NSTimer firing at 60 fps.It updates a C++ model and then draws via Quartz 2D.This works well except memory accumulates quickly even though I am not allocating anything.Instruments reports no
Is there a way to change an autoreleased object to one that is non-autoreleased? NSCoder\'s decodeObjectForKey returns an autoreleased object, which messes with a couple memory systems in my app.How
This is my first time asking a question in this site. as an amateur developer, I always found answers to my questions in this site, but I could not find one to my current problem.
I am new to Objective-C and I am confused about this retain-release thing. Are parameters retained automatically? Do I need to release them?
i am supposed to load large number of images on to a scrollview which, i suppose would take some time and memory. So, i used a separate thread to load these images in the background. I have used the f
why do I need this autorelease after [NSMutableArray array] to avoid a memory leak? That is Instruments told me there was a leak.By putting the autorelease in it solved it, however I\'m not sure why
-(void)returnString { NSString *str=[[NSString alloc]init]; return [str autorelease]; } -(void)getString { NSString *p=[self returnString];
Is there an autorelease analogous method for CG开发者_运维知识库PDFDocumentRef instances? I\'d like to apply this before returning an instance I created. Or can I only do CGPDFDocumentRelease(...) bef