CFString literal contains NUL character
CFString literal contains NUL character
- Subject: CFString literal contains NUL character
- From: "Gerriet M. Denkmann" <email@hidden>
- Date: Fri, 15 Jul 2011 21:27:37 +0200
I convert a file into a string:
NSFileHandle *fh = [ [ NSFileHandle alloc ] initWithFileDescriptor: fileDescriptor ];
NSData *data = [ fh readDataToEndOfFile ];
[ fh release ];
NSString *uu = [ [ NSString alloc ] initWithData: data encoding: NSUTF8StringEncoding ];
and then try to get it's components:
NSArray *bb = [ uu componentsSeparatedByString: @"\0" ];
and get a warning: "CFString literal contains NUL character". 10.6.8, LLVM 2.0, Xcode 4.0.2
How do I get rid of this warning?
The code seems to work as intended - but I dislike warnings.
Kind regards,
Gerriet.
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden