Re: Simple C Question
Re: Simple C Question
- Subject: Re: Simple C Question
- From: Brian Luft <email@hidden>
- Date: Tue, 29 Jan 2002 19:13:10 -0600
On 1/29/02 1:12 PM, "Carla Lewis" <email@hidden> wrote:
>
I want to setStringValue of an NSString with variable of type char? How
>
do I convert char-type to NSString type?
Use the *withCString functions.
Convenience constructor thingy:
[[NSString stringWithCString: "Blah"] retain]
Normal initializer:
NSString *myString = [[NSString alloc] initWithCString: "Blah"];
Thanks. Brian
--
Brian Luft
email@hidden
http://youma.cjb.net