FROM : Jens Alfke
DATE : Sat Mar 22 21:24:46 2008
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
DATE : Sat Mar 22 21:24:46 2008
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
| Related mails | Author | Date |
|---|---|---|
| Marco Cassinerio | Mar 22, 18:22 | |
| Paolo Manna | Mar 22, 19:12 | |
| Jeff LaMarche | Mar 22, 19:18 | |
| Michael Ash | Mar 22, 20:11 | |
| Marco Cassinerio | Mar 22, 20:40 | |
| Jens Alfke | Mar 22, 20:46 | |
| Marco Cassinerio | Mar 22, 21:19 | |
| Jens Alfke | Mar 22, 21:24 | |
| Marco Cassinerio | Mar 22, 22:11 |






Cocoa mail archive

