Re: Simple C Question
Re: Simple C Question
- Subject: Re: Simple C Question
- From: Thomas Deniau <email@hidden>
- Date: Tue, 29 Jan 2002 20:38:36 +0100
Le 29/01/02 20:12, Carla Lewis disait :
>
I want to setStringValue of an NSString with variable of type char? How
>
do I convert char-type to NSString type?
char * cString="blah";
NSString *string=[NSString stringWithCString:cString];
Then use 'string' in setStringValue.
--
Thomas Deniau