Re: base64 NSData to NSString
Re: base64 NSData to NSString
- Subject: Re: base64 NSData to NSString
- From: Marco Cassinerio <email@hidden>
- Date: Sat, 22 Mar 2008 22:11:19 +0100
On Mar 22, 2008, at 9:24 PM, Jens Alfke wrote:
On 22 Mar '08, at 1:19 PM, Marco Cassinerio wrote:
I've done what you said, but nothing changed. I get the same data
content, like this:
ImgR\362FBIL\346\326\303\331\376\247H+\222!\222C\303\351-+
\377\376\377\377\377\377\222!\221\302\221\301
\2161\216a
mfile.icnsMacintosh HD>Developer/Applications/Xcode.app/Contents/
Resources/mfile.icns/\377\377
That's not base64. If I recall, you're looking at file aliases in a
plist? In that case, what you have is an NSData object containing
the raw data from an AliasHandle. You'll need to copy that into a
handle, and use the CoreServices API <Aliases.h> to get an FSRef or
path to the destination file. Actually, there are a couple of
existing Cocoa wrappers for the Aliases API, and I'd recommend
finding and using one of those instead, unless you're really
familiar with Carbon concepts like handles and FSRefs.
—Jens
Thank you.
I found NDAlias http://homepage.mac.com/nathan_day/pages/source.xml on
the network and it works fine.
Marco
_______________________________________________
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