views:

44

answers:

1

How do I convert a std::basic_string to a NSString ?

+2  A: 

[NSString stringWithCString: myBasicString.c_str() encoding: NSWhateverStringEncoding];

Graham Lee
Does that work in all possible cases of basic_string?
Sney
@Snej: What cases you can think of?
KennyTM
@KennyTM: more to the point, what cases does @Snej need covering?
Graham Lee