Re: NSMutableString question
Re: NSMutableString question
- Subject: Re: NSMutableString question
- From: Jim Correia <email@hidden>
- Date: Tue, 16 Sep 2008 21:10:55 -0400
On Sep 16, 2008, at 8:59 PM, Dave DeLong wrote:
The general rule with convenience class methods like that is that
they return an autoreleased object.
The rules are encapsulated in the object ownership policy:
<http://developer.apple.com/documentation/Cocoa/Conceptual/MemoryMgmt/Concepts/ObjectOwnership.html
>
That they object may, or may not, be returned autoreleased is
irrelevant. The only thing which is relevant is whether you own the
returned object or not.
Jim
_______________________________________________
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