Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: unpacking binary data



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:
http://lists.apple.com/mailman/options/cocoa-dev/email@hidden

This email sent to email@hidden

References: 
 >unpacking binary data (From: "C Sandeep" <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.