FROM : Uli Kusterer
DATE : Fri Aug 04 20:37:14 2006
Am 04.08.2006 um 18:38 schrieb Yvon Thoraval:
> ok, i see what you mean, the question remains to me, how to resolve
> alias FILE ))
Apple will probably tell you to use AppleScript. Otherwise, you can
open the Alias file's resource fork (e.g. using NDResourceFork), load
the 'alis' resource in there (which is an AliasRecord), stick it in
an NSData and hand that off to NDAlias. *then* that NDAlias will
point to the same file the alias file stands for.
But in this case, you're making an assumption about the internal
format of an alias, which Apple recommends against.
Cheers,
-- M. Uli Kusterer
http://www.zathras.de
DATE : Fri Aug 04 20:37:14 2006
Am 04.08.2006 um 18:38 schrieb Yvon Thoraval:
> ok, i see what you mean, the question remains to me, how to resolve
> alias FILE ))
Apple will probably tell you to use AppleScript. Otherwise, you can
open the Alias file's resource fork (e.g. using NDResourceFork), load
the 'alis' resource in there (which is an AliasRecord), stick it in
an NSData and hand that off to NDAlias. *then* that NDAlias will
point to the same file the alias file stands for.
But in this case, you're making an assumption about the internal
format of an alias, which Apple recommends against.
Cheers,
-- M. Uli Kusterer
http://www.zathras.de
| Related mails | Author | Date |
|---|---|---|
| Yvon Thoraval | Aug 4, 09:06 | |
| Jakob Olesen | Aug 4, 11:56 | |
| Bill Bumgarner | Aug 4, 13:56 | |
| Yvon Thoraval | Aug 4, 14:43 | |
| Chris Hanson | Aug 4, 18:32 | |
| Yvon Thoraval | Aug 4, 18:38 | |
| Uli Kusterer | Aug 4, 20:37 | |
| Shawn Erickson | Aug 4, 20:46 | |
| Shawn Erickson | Aug 4, 20:48 | |
| Rosyna | Aug 5, 04:12 | |
| Adam R. Maxwell | Aug 5, 04:47 | |
| Rosyna | Aug 5, 04:57 | |
| Yvon Thoraval | Aug 5, 07:55 | |
| Yvon Thoraval | Aug 6, 09:39 | |
| Yvon Thoraval | Aug 10, 22:32 |






Cocoa mail archive

