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 (Cocoa-dev@lists.apple.com)

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to