How do I convert a std::basic_string to a NSString ?
+2
A:
[NSString stringWithCString: myBasicString.c_str() encoding: NSWhateverStringEncoding];
Graham Lee
2010-03-10 12:17:55
Does that work in all possible cases of basic_string?
Sney
2010-03-10 12:19:38
@Snej: What cases you can think of?
KennyTM
2010-03-10 12:24:26
@KennyTM: more to the point, what cases does @Snej need covering?
Graham Lee
2010-03-10 12:30:25