From: Yvon Thoraval Date: 2006-08-04T16:44:44+09:00 Subject: Re: [MacOS X] finding the orig file of an alias --Apple-Mail-4-276620060 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=ISO-8859-1; delsp=yes; format=flowed Le 3 ao=FBt 06 =E0 04:28, Phillip Hutchings a =E9crit : > > For an alias you'll need to hook in to Core Foundation, check out this > ADC article: > http://developer.apple.com/documentation/Cocoa/Conceptual/=20 > LowLevelFileMgmt/Tasks/ResolvingAliases.html > OK, i'm reading this article, but i'm lost on how to use some methods... let me tell you what i've understood from the above mentionned =20 "ResolvingAliases.html" - 1 - convert NSURL to FSRef using CFURLGetFSRef(url, &fsRef) - 2 - resolve alias with FSResolveAliasFile - 3 - go back to the url side by applying CFURLCreateFromFSRef(NULL, =20 &fsRef) what i don't understand is on what kind of receiver i must apply the =20 method "CFURLGetFSRef" i seems that "OSX::NSFileManager.defaultManager" couldn't do the =20 trick... Yvon= --Apple-Mail-4-276620060--