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 (Cocoa-dev@lists.apple.com) 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: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com