On 6/22/09 7:58 AM, Phil Hystad said:

>If you were writing a new Cocoa application from scratch, would
>garbage collection be the preferred method over the reference counting
>(retain/release) method.

I switched to GC-only during the 10.5 betas, and my answer is: Yes.

Others have made good comments, I'll simply add that the tools support
on 10.5 is weaker than with retain-release.  There are all kinds of
limitations (individually minor, but in summation major):
 - Instruments reports zillions of false positives when checking for leaks
 - there's no guard malloc for GC memory
 - OpenGL Profiler doesn't work with GC apps
 - CHUD.framework is not dual mode, so can't be linked against
 - MallocDebug.app crashes with GC apps
 - etc. etc. etc.

Otherwise, GC has been a great experience for me.

No doubt things will improve in 10.6....

--
____________________________________________________________
Sean McBride, B. Eng                 s...@rogue-research.com
Rogue Research                        www.rogue-research.com
Mac Software Developer              Montréal, Québec, Canada


_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to