char* -> NSString
char szText[] = "hi...";
NSString* nsStr = [NSString stringWithUTF8String: szText];
char strDocumentDirectory[1024];
[pDocumentsDirectory getCString:strDocumentDirectory maxLength:sizeof(strDocumentDirectory)-1 encoding:NSASCIIStringEncoding];
[pDocumentsDirectory getCString:strDocumentDirectory maxLength:sizeof(strDocumentDirectory)-1 encoding:NSASCIIStringEncoding];
NSString -> char*
NSString* nsStr = @"hi I'm NSString";
const char* strTmp = [nsStr UTF8String];
---------------------------------------------------------------
출처]http://manwooo.egloos.com/834519