On Sun, Mar 30, 2008 at 10:23 PM, C Sandeep <[EMAIL PROTECTED]> 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 (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 [EMAIL PROTECTED]

Reply via email to