autorelease
Is it dangerous to set off an autoreleased NSOperationQueue?
I have a task that takes a rather long time and should run in the background. According to the documentation, this can be done using an NSOperationQueue. However, I do not want to keep a class-global[详细]
2022-12-24 14:43 分类:问答When is an autoreleased object actually released?
I am new in objective-c and I am trying to understand memory management to get it right. After reading the excellent[详细]
2022-12-24 08:10 分类:问答Returning objects with autorelease but I still leak memory
I am leaking memory on this: my custom class: + (id)vectorWithX:(float)dimx Y:(float)dimy{ return [[[Vector alloc] initVectorWithX:dimx Y:dimy] autorelease]; }[详细]
2022-12-22 15:21 分类:问答Is return autorelease a bug in objective c?
I am new to objective c and am trying to understand how/when autorelease is called. I understand the simple use case of:[详细]
2022-12-20 06:05 分类:问答Objective-C memory management strange results
I am calling a function repeatedly wit开发者_Python百科h a loop, and the loop runs inside of a thread. The thread has an autorelease pool.[详细]
2022-12-19 02:47 分类:问答Objective-C memory management (alloc and autorelease)
When you allocate and initialize and ob开发者_如何学Cject, and then want to return that object, how are you supposed to return it?[详细]
2022-12-18 07:28 分类:问答NSURLCache crashes with autoreleased objects, but leaks otherwise
CSURLCache is designed to cache resources for offline browsing, as NSURLCache only stores data in-memory.[详细]
2022-12-18 05:35 分类:问答What is the difference between releasing and autoreleasing?
I still have some unclear understand about release and autorelease. What are the difference between both of them? I have this code. For facebook connection. I crash it sometimes when I go to Facebook开[详细]
2022-12-17 01:44 分类:问答iPhone memory leak help
This code is leaking, the performance tool blames two leaks on this block of code. If i comment it out the leak doesn\'t happen. Any help pinning it down would be greatly appreciated.[详细]
2022-12-16 23:46 分类:问答How to force release an UITableViewCell
Is there a way to force a custom UITableViewCell to be released instead of waiting for the OS to autorelease it late开发者_JAVA技巧r? I\'m pretty sure you thought of this, but sending it a release mes[详细]
2022-12-16 21:30 分类:问答