1
vote
Accepted
What is the best way to retain a local object which is performing an asynchronous task?
There are several ways to handle this issue in Objective-C, but one common approach is to have the object retain itself while performing the asynchronous operation and then release itself when the ...
1
vote
What is the best way to retain a local object which is performing an asynchronous task?
An object retaining itself when it knows that it needs to continue to exist is perfectly normal.
Expecting the caller to do anything at all clever just because it is calling a method which has a ...
Only top scored, non community-wiki answers of a minimum length are eligible
Related Tags
cocoa × 15objective-c × 7
ios × 6
object-oriented × 2
mac × 2
design × 1
unit-testing × 1
testing × 1
mvc × 1
continuous-integration × 1
memory × 1
mobile × 1
gui × 1
game-development × 1
asynchronous-programming × 1
iphone × 1
persistence × 1
object × 1
observer-pattern × 1
file-structure × 1
software-updates × 1
jenkins × 1
cloud × 1
apple × 1
xcode × 1