Resolving a alias w/o mounting file systems
Resolving a alias w/o mounting file systems
- Subject: Resolving a alias w/o mounting file systems
- From: Pierre Bernard <email@hidden>
- Date: Mon, 17 Apr 2006 19:41:47 +0200
Hi!
I would like to resolve Finder aliases in code. It appears that there
is no Cocoa API to do so.
Carbon has the AliasManager API which lets me resolve aliases using
FSResolveAliasFile()
The problem is that this function goes to mount server volumes to
which the alias may point. This has a time penalty (especially if the
server is unavailable) I am not willing to take.
How can I resolve an alias only if the original's volume is readily
available?
I a playing around with FSMatchAlias, but can't make much sense of
it. The following code always has aliasCount==0:
short aliasCount;
FSRef aliasList;
Boolean needsUpdate;
AliasHandle ah;
FSNewAlias(NULL, &theRef, &ah);
FSMatchAlias ( &theRef,
kARMNoUI | kARMMultVols |kARMSearchMore,
ah,
&aliasCount,
&aliasList,
&needsUpdate,
NULL,
NULL
);
Pierre
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden