Re: int to bytes(value in NSString)
Re: int to bytes(value in NSString)
- Subject: Re: int to bytes(value in NSString)
- From: Alastair Houghton <email@hidden>
- Date: Wed, 19 Aug 2009 09:51:50 +0100
On 19 Aug 2009, at 02:30, bosco fdo wrote:
Hi all
I dont want in binaries('1', '0'),
but i want to convert int to bytes(byte value string)
for example in java working code when i convert int value 1 to byte
value in 4 square like chars(unreadable format)
the same thing i need to do in objective c
thanks for the help
Hi Bos,
I think there is a misunderstanding here.
Strings are for characters, nor for arbitrary collections of bytes
(indeed, Cocoa and CoreFoundation strings store collections of UTF-16
code units, at least as far as the API is concerned, though they might
be implemented differently internally). For collections of bytes, you
should be using NSData.
Perhaps you can explain what these integers and/or bytes are supposed
to be for?
Kind regards,
Alastair.
--
http://alastairs-place.net
_______________________________________________
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