What is the best way to initiate NSString that contains @”\0″?
NSString* foo = @"bar\0";
causes ‘CFString literal contains NUL character’ warning.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
NSStringobjects are for text. Consider using anNSDataorNSMutableDataobject if you wish to have non-text data in amongst textual data (for example, when it is to be written to a socket or saved to a file).