• 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: unpacking binary data
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: unpacking binary data


  • Subject: Re: unpacking binary data
  • From: "stephen joseph butler" <email@hidden>
  • Date: Sun, 30 Mar 2008 22:29:58 -0500

On Sun, Mar 30, 2008 at 10:23 PM, C Sandeep <email@hidden> wrote:

>  Im working on an cocoa application that needs to, among other things,
> unpack binary data, into NSString preferably. I have used perl's
> unpack (http://perldoc.perl.org/functions/unpack.html) in the past to
> do such a thing. I have looked at NSData's documentation, however Im
> at a loss on how to accomplish the same. Any help is greatly
> appreciated. Thanks.


Look at  -[NSString initWithData:encoding:]. Or, if you only need a range of
the bytes, -[NSString initWithBytes:length:encoding:].
_______________________________________________

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: 
 >unpacking binary data (From: "C Sandeep" <email@hidden>)

  • Prev by Date: Re: CAOpenGLLayer
  • Next by Date: Re: Threads and Core Data, bindings results in view corruption
  • Previous by thread: unpacking binary data
  • Next by thread: Trying to contact Cathy Shive (again)
  • Index(es):
    • Date
    • Thread