Re: int to bytes(value in NSString)
Re: int to bytes(value in NSString)
- Subject: Re: int to bytes(value in NSString)
- From: Andrew Farmer <email@hidden>
- Date: Mon, 17 Aug 2009 23:56:42 -0700
On 17 Aug 2009, at 23:21, bosco fdo wrote:
Hi graham
Thanks for the reply. I have tried %i.1 but i am getting
0.10.10.10.1 ,
but i need it in binary byte value
Wait, you're trying to construct a NSString with null bytes in it? I'm
pretty sure that doesn't work correctly in a lot of circumstances -
NSString is primarily intended for representing a sequence of
characters, not an arbitrary set of bytes. What you probably want
instead is NSData.
_______________________________________________
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