Cocoa Memory Management – Simple Rules
December 23rd, 2008
Few month ago I started to develop iPhone application for a new customer. Having a lot of .NET experience before (and no Objective-C experience), I was discouraged with absence of garbage collector. Yep, garbage collection is unfortunately not supported under iPhone OS, it is supported only under Mac OS X. Dealing with manual memory allocation/deallocation, releasing/retaining/autoreleasing took time in researches until I’ve reached a good article at stepwise.com. In a bit of information are described common memory management rules and common mistakes. Here it is:
Very simple rules for memory management in Cocoa
For more information please use Apple document Memory Management Programming Guide for Cocoa.

