Quote:
Originally Posted by RickMaddy
Here's the simplest rule: If you directly call any of the following methods on an object then you must call release on the object:
alloc/init
retain
copy
mutableCopy
|
I have a couple simple follow-up questions:
- Do you need to release statements when you "initWithFormat", "initWithTitle", or "SoundEngine_Initialize"
- How do you decide when to release within a method (e.g. [actionSheet release]; ) vs. doing it in the - (void)dealloc method