When to release, when to retain?
Hello,
I've been programming for a bit over a month.
To this day, I still struggle with the memory management in objective-c. I understand reference counting, but I'm confused about which functions retains and which auto releases etc.
What are some general rules to abide by?
For example, if I call an objective-c function, how do I know I should release explicitly or whether it's auto released?
Thank you.
|