Re: Some confusion on memory management
Re: Some confusion on memory management
- Subject: Re: Some confusion on memory management
- From: Andy Armstrong <email@hidden>
- Date: Fri, 20 Jan 2006 16:12:13 +0000
On 20 Jan 2006, at 16:08, Jeff Gilbert wrote:
In the case of NSString, [newString copy] simply does a [newString
retain]. It does not make a new copy in memory so the end result is
the same. This will also handle the case that you actually do pass
an NSMutableString to setMyString:.
Ah, excellent - I didn't know that, thanks :)
--
Andy Armstrong, hexten.net
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden