Re: NSString's "mutableCopy" creating a leak?
Re: NSString's "mutableCopy" creating a leak?
- Subject: Re: NSString's "mutableCopy" creating a leak?
- From: Charles Steinman <email@hidden>
- Date: Wed, 1 Oct 2008 13:35:49 -0700 (PDT)
--- On Wed, 10/1/08, Christopher J Kemsley <email@hidden> wrote:
> I was not aware that I shouldn't explicitly call a
> dealloc... Why not?
That isn't how memory management in Cocoa works. From TFM entry on dealloc:
"You never send a dealloc message directly. Instead, an object’s dealloc method is invoked indirectly through the release NSObject protocol method (if the release message results in the receiver's retain count becoming 0). See Memory Management Programming Guide for Cocoa for more details on the use of these methods."
Cheers,
Chuck
_______________________________________________
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