Re: reading data from a UDP port - questions
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