Re: Resolving a alias w/o mounting file systems
Re: Resolving a alias w/o mounting file systems
- Subject: Re: Resolving a alias w/o mounting file systems
- From: Rosyna <email@hidden>
- Date: Mon, 17 Apr 2006 10:55:30 -0700
Use FSResolveAliasWithMountFlags(), passing kResolveAliasFileNoUI as
the option. The name is odd, but it basically means it won't do
anything that would ask for user interaction, such as a login for a
server and thus won't mount any volumes.
Ack, at 4/17/06, Pierre Bernard said:
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:
--
Sincerely,
Rosyna Keller
Technical Support/Holy Knight/Always needs a hug
Unsanity: Unsane Tools for Insanely Great People
It's either this, or imagining Phil Schiller in a thong.
_______________________________________________
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