Re: Cocoa string to carbon compatible C string
Re: Cocoa string to carbon compatible C string
- Subject: Re: Cocoa string to carbon compatible C string
- From: Scott Ribe <email@hidden>
- Date: Mon, 12 May 2008 11:41:49 -0600
- Thread-topic: Cocoa string to carbon compatible C string
There's also the issue of the lifetime of the string. Will initSomeSystem
hang on to the char * after the call returns? If so, your code will blow up
since when the NSString goes it will take with it that C string--instead
you'd have use one of the calls that *copies* the C string into a buffer
that you provide.
--
Scott Ribe
email@hidden
http://www.killerbytes.com/
(303) 722-0567 voice
_______________________________________________
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