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 11:35:58 -0700
Wait, what?
You're making an alias to an FSRef, then immediately calling
FSMatchAlias() on it with the FSRef it came from as the start
parameter?
Also, aside from the aliasList, all vars should have initial values.
There's no guarantee that the File Manager will set these to
NULL/false if an error occurs. And are you actually checking for any
errors?
If you wanted to test how this function works, pass NULL for the
first argument to FSMatchAliasNoUI().
Ack, at 4/17/06, Pierre Bernard said:
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
);
--
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