Re: Using NSMutableString* for NSString* result
Re: Using NSMutableString* for NSString* result
- Subject: Re: Using NSMutableString* for NSString* result
- From: "Alastair J.Houghton" <email@hidden>
- Date: Fri, 3 Oct 2003 21:16:04 +0100
On Friday, October 3, 2003, at 06:16 pm, Chris Hanson wrote:
On Friday, October 3, 2003, at 11:56 AM, Alastair J.Houghton wrote:
Or just
return [myMutableString copy];
Don't. The convention is that returned objects from any method that
isn't an alloc or copy method should be considered autoreleased.
Of course. I forgot to autorelease. My mistake.
Regards,
Alastair.
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.