I have a string msMyString that was created by
NSMutableString *msMyString = [NSMutableString stringWithString
"NoSpecialCharactersJustAnOrdinaryString"];
Both of the lines below work perfectly, and so I am not at all certain which is preferred, etc. I know about NSLog(@"%@",msMyString), but I am trying to sort through all of the various ways of converting back and forth between objects, and 'C' primitives. I believe that I put that correctly, but I assume that you know what I mean.
NSLog(@"%s",[msMyString cStringUsingEncoding:NSASCIIStringEncoding]);
NSLog(@"%s",[msMyString UTF8String]);
Thanks in advance.
NSMutableString *msMyString = [NSMutableString stringWithString
Both of the lines below work perfectly, and so I am not at all certain which is preferred, etc. I know about NSLog(@"%@",msMyString), but I am trying to sort through all of the various ways of converting back and forth between objects, and 'C' primitives. I believe that I put that correctly, but I assume that you know what I mean.
NSLog(@"%s",[msMyString cStringUsingEncoding:NSASCIIStringEncoding]);
NSLog(@"%s",[msMyString UTF8String]);
Thanks in advance.