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: Pierre Bernard <email@hidden>
- Date: Mon, 17 Apr 2006 20:24:18 +0200
Hi Rosyna!
Thanks for you suggestion.
I already tried that function. It does not fit the bill as it
connects to servers where it has not to ask for a password. E.g.
recently used servers.
I might still hit an unavailable server and have to wait for the
connection to timeout.
Pierre
On Apr 17, 2006, at 7:55 PM, Rosyna wrote:
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