Re: NSString and char *
Re: NSString and char *
- Subject: Re: NSString and char *
- From: Andrei Tchijov <email@hidden>
- Date: Sat, 11 Feb 2006 18:53:58 -0500
+ stringWithCString:encoding:
Returns a string containing the characters in cString, which must end
with a NULL character and which may not be NULL.
+ stringWithUTF8String:
Returns a string created by copying the characters from bytes, which
may not be NULL.
– initWithCString:encoding:
Initializes the receiver, a newly allocated NSString, by converting
the characters in cString from the specified encoding into the
Unicode character encoding.
– initWithUTF8String:
Initializes the receiver, a newly allocated NSString, by copying the
characters from bytes.
On Feb 11, 2006, at 5:47 PM, Lars Elden wrote:
I am mixing ObjC and C compiled files. How to initialize a NSString
from a
char * C string ?
thanks!
Lars
______________________________________________
LLama Gratis a cualquier PC del Mundo.
Llamadas a fijos y móviles desde 1 céntimo por minuto.
http://es.voice.yahoo.com
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden