Re: Trying to understand -- please help...
Re: Trying to understand -- please help...
- Subject: Re: Trying to understand -- please help...
- From: "Hamish Allan" <email@hidden>
- Date: Wed, 21 May 2008 22:09:11 +0100
On Wed, May 21, 2008 at 7:35 PM, Johnny Lundy <email@hidden> wrote:
> All it would take is a single sentence under the "Class Methods" header, to
> say that these methods autorelease the returned object (AND that such
> autoreleasing means that the object will be deallocated if the method in
> which it was created returns).
No: autorelease is useful precisely because the object will not be
deallocated when the method in which it was created returns. Please
see http://developer.apple.com/documentation/Cocoa/Conceptual/MemoryMgmt/Concepts/ObjectOwnership.html.
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