Re:Android vs iOS: A Developer's Perspective
by HectorRamos on Wednesday December 08, 2010 @01:06AM
(#1982086)
If your property is defined as retain in your header, you are claiming ownership for it and so it needs to be released in your dealloc method.
This is covered in the basic Memory Management doc http://developer.apple.com/library/mac/#documentation/Cocoa/...
My problem with the documentation, as I said before is mostly organization. Along with that, some of these concepts are defined in ways that only make sense if you already know the language and framework.
After a couple projects and code reviews, I think I understand it now. It is not that we are lazy for not understanding or liking it; it is that it isn't intuitive or simple like GC.