• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: CFString literal contains NUL character
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

References: 
 >CFString literal contains NUL character (From: "Gerriet M. Denkmann" <email@hidden>)

  • Prev by Date: Re: Memory management and returned values from methods...
  • Next by Date: Re: Memory management and returned values from methods...
  • Previous by thread: CFString literal contains NUL character
  • Next by thread: Memory management and returned values from methods...
  • Index(es):
    • Date
    • Thread