• 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: int to bytes(value in NSString)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >int to bytes(value in NSString) (From: bosco fdo <email@hidden>)
 >Re: int to bytes(value in NSString) (From: Graham Cox <email@hidden>)
 >Re: int to bytes(value in NSString) (From: bosco fdo <email@hidden>)
 >Re: int to bytes(value in NSString) (From: Andrew Farmer <email@hidden>)
 >Re: int to bytes(value in NSString) (From: bosco fdo <email@hidden>)

  • Prev by Date: Re: Get size of folder
  • Next by Date: Re: Get size of folder
  • Previous by thread: Re: int to bytes(value in NSString)
  • Next by thread: Re: int to bytes(value in NSString)
  • Index(es):
    • Date
    • Thread