Re: Alias Record, new methods?
Re: Alias Record, new methods?
- Subject: Re: Alias Record, new methods?
- From: Nick Zitzmann <email@hidden>
- Date: Thu, 19 May 2005 09:02:43 -0600
On May 19, 2005, at 8:04 AM, Lorenzo Puleo wrote:
in my old applications I used to store an alias record within my
files, so
later I was able to read that alias record and retrive its target
file on
the disk, even if the user moved that file on the same disk.
Now I suppose that with Cocoa and Unix, I should use a different
method to
do that. Actually I store only absolute pathnames into my files,
within a
NSDictionary. Can I store something like an alias record or a
relative or
absolute sym link too?
Yes.
If so, how should I do?
There's a third-party alias wrapper out there called "NDAlias" that
wraps Alias structures; you can find it by searching Google. NDAlias
supports NSCoding, so you can use an archiver to turn an alias into
data and back again. And aliases do work even on non-HFS+ volumes.
Nick Zitzmann
<http://www.chronosnet.com/>
_______________________________________________
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