Re: Adding password for a file to keychain
Re: Adding password for a file to keychain
- Subject: Re: Adding password for a file to keychain
- From: Shawn Erickson <email@hidden>
- Date: Tue, 20 Dec 2005 12:19:06 -0800
On 12/20/05, Uli Kusterer <email@hidden> wrote:
>
>
Am 20.12.2005 um 18:31 schrieb Shawn Erickson:
>
> How was it moved or renamed?
>
>
>
> Aliases, when use right, will deal with moves and renamed as long as
>
> the file is still on the same volume.
>
>
>
> So how are you constructing your alias and resolving your alias?
>
>
Using an Alias *can't* work in this case. An Alias is a combination
>
of lots of info for finding a file. Let's assume it simply contained
>
the path, containing directory ID, file name and node ID. The
>
original Alias is
>
>
{ Hard Disk:Folder:File.txt, 17, File.txt, 777 }
>
>
Now the file is moved, and a new Alias is created:
>
>
{ Hard Disk:Folder2:File.txt, 18, File.txt, 777 }
>
>
These Aliases are different, although both can be used to find the
>
same file (since name and node ID still allow finding the moved
>
file). Aliases aren't guaranteed to stay the same, thus they are
>
unsuitable for looking up moved files.
I wasn't implying that that aliases created for the same file now with
a different name/path would get you the same alias blob of data. You
can iterate over the aliases in the key chain to see if they hit the
file in question. Not ideal but Glen sounded to have a system already
setup to do this but he just couldn't get the aliases to resolve... or
maybe I assumed to much.
-Shawn
_______________________________________________
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