Understanding when to call retain on an object?
问题 When should retain be used ? I understand that it increments the object references count, so basicly the next release on that object will not call dealloc on it. Ok great, so what ? I read around that it's some kind of convention, that if you care about an object, you retain it. Is there any examples of that out there ? Is that even true ? EDIT: I'm not looking for when the debugger tells you to do that or this. So, I looked into this. To put it in my words, here's an example of a retain