Mailing Lists: Apple Mailing Lists

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

Quick way to convert hex string represented in ASCII to binary?



Hi

I'm storing aliases in a database by converting the alias records to NSData objects and then getting a description of these objects for storage. Is there a quick way to turn this ascii representation of hex back into binary data? I know I can do it by looping through each character in the string and manually converting it, but I'm wondering if anyone knows of a better way to do it.

Thanks

Ken
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/email@hidden

This email sent to 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.