• 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: reading data from a UDP port - questions
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: reading data from a UDP port - questions


  • Subject: Re: reading data from a UDP port - questions
  • From: Benjamin Stiglitz <email@hidden>
  • Date: Mon, 17 Mar 2008 16:11:26 -0700

(2) But in any case, NSString doesn't mind embedded null bytes. (It's not null-terminated like a C string; the string object remembers the length separately.) That doesn't mean you should store binary data in an NSString, though. NSData is better for that.

NSString isn’t really too happy with embedded NULLs. See the documentation for the initWith___: methods, which are littered with the statement “must not contain NULL.”


-Ben_______________________________________________

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: 
 >reading data from a UDP port - questions (From: Jason Ellemor <email@hidden>)
 >Re: reading data from a UDP port - questions (From: Jens Alfke <email@hidden>)

  • Prev by Date: How to track all keyboard event?
  • Next by Date: Re: NSDate from xsd:dateTime / ISO 8601
  • Previous by thread: Re: reading data from a UDP port - questions
  • Next by thread: Re: reading data from a UDP port - questions
  • Index(es):
    • Date
    • Thread