Re: CFString literal contains NUL character
Re: CFString literal contains NUL character
- Subject: Re: CFString literal contains NUL character
- From: Jens Alfke <email@hidden>
- Date: Fri, 15 Jul 2011 14:29:10 -0700
On Jul 15, 2011, at 12:27 PM, Gerriet M. Denkmann wrote:
> 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?
Create the separator string programmatically, I suppose. -initWithCharacters:length: would work.
But it seems weird to have a null character in an NSString — I’m not sure if that’s even considered legal. I would do that level of parsing in the NSData and then convert each range of non-null bytes into a string separately.
—Jens
Attachment:
smime.p7s
Description: S/MIME cryptographic signature
_______________________________________________
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