The method calls, autorelease, release, retain, and dealloc will be ignored in garbage collection enabled process.
However the iPhone environment doesn't support garbage collection. Also if you deploy a garbage collected library, older non-garbage collected processes using your library will be in trouble (will probably leak memory.)
So from portability point of view, it looks like you will have more reasons to turn-off garbage collection, and "do it yourself" until old systems phase out and iPhone runtime (if ever) supports GC. If your app is brand new and doesn't have coupling with the older processes then you may take advantage of GC.
No comments:
Post a Comment