Re: Use of Mac OS X 10.5 / Leopards Garbage Collection Considered Harmful
Re: Use of Mac OS X 10.5 / Leopards Garbage Collection Considered Harmful
- Subject: Re: Use of Mac OS X 10.5 / Leopards Garbage Collection Considered Harmful
- From: "Hamish Allan" <email@hidden>
- Date: Thu, 7 Feb 2008 01:40:17 +0000
On Feb 7, 2008 1:06 AM, John Engelhart <email@hidden> wrote:
> It's pretty clear that I don't need to use __strong for the pointer
I don't think this is at all clear. You have only a single weak
reference to the data returned by UTF8String, so it's not at all
surprising when it gets lost. This is pretty much akin to what happens
if you fail to send a retain to an autoreleased object, but you're not
complaining that pre-Leopard memory management is broken.
Hamish
_______________________________________________
Cocoa-dev mailing list (email@hidden)
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:
This email sent to email@hidden