autorelease
TBXML issue with autorelease on iOS 5
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..[详细]
2023-03-21 16:02 分类:问答Should I retain, autorelease or do nothing when returning NSArray of executeFetchRequest: result?
Please have a look at the code below: - (NSArray *)requestEntities:(NSString *)entityName { NSFetchRequest *fetchRequest = [[NSFetchRequest alloc] init];[详细]
2023-03-20 16:42 分类:问答60 hz NSTimer and autoreleased memory
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[详细]
2023-03-19 23:36 分类:问答Changing auto-released object to non-auto
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[详细]
2023-03-17 09:47 分类:问答iOS Programming: 'super dealloc' crashes app
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.[详细]
2023-03-17 02:41 分类:问答Retain-Release in Objective-C
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?[详细]
2023-03-15 05:12 分类:问答Problem while using Multi - threading in iPad programming (for loading large number of images)
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[详细]
2023-03-10 08:46 分类:问答why do I need this autorelease after [NSMutableArray array] to avoid a memory leak?
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[详细]
2023-03-10 06:20 分类:问答LifeTime of an autoreleased object
-(void)returnString { NSString *str=[[NSString alloc]init]; return [str autorelease]; } -(void)getString { NSString *p=[self returnString];[详细]
2023-03-09 08:11 分类:问答CGPDFDocumentRef and autorelease
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[详细]
2023-03-08 05:58 分类:问答