Re: NSString -> char[]
Re: NSString -> char[]
- Subject: Re: NSString -> char[]
- From: "Clark S. Cox III" <email@hidden>
- Date: Sat, 18 May 2002 15:02:37 -0400
On 05/18/2002 14:36, "Clark Mueller" <email@hidden> wrote:
>
I know this is a relatively stupid question, but how do I do that? cString
>
doesn't work for my purposes, and casting to an array type doesn't work
>
either.
NSString *myNsString = ...;
char myCString[ length ];
[ myNsString getCString: myCString maxLength: sizeof myCString ];
--
Clark S. Cox III
http://clarkcox.dyndns.org/
email@hidden
_______________________________________________
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.