• 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: 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


  • Follow-Ups:
    • Re: int to bytes(value in NSString)
      • From: bosco fdo <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>)

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