Re: Autorelease question
Re: Autorelease question
- Subject: Re: Autorelease question
- From: Chris Suter <email@hidden>
- Date: Fri, 4 Apr 2008 13:32:50 +1100
On 04/04/2008, at 1:25 PM, Dmitry Markman wrote:
how can you explain that
NSString *nsFontName = [NSString stringWithCString:fontName
encoding:NSMacOSRomanStringEncoding];
can be released, but
NSString *textString = [NSString stringWithCString:"Hello
From Cocoa" encoding:NSMacOSRomanStringEncoding];
can not
so what's the difference?
Neither of them should be released; there's no difference.
Nobody wants to answer memory management questions on this list, not
least because it's better said in the documentation. It's very
comprehensively covered in the documentation so please take the time
to read and understand them.
- Chris
Attachment:
smime.p7s
Description: S/MIME cryptographic signature
_______________________________________________
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