• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Alias Record, new methods?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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
References: 
 >Alias Record, new methods? (From: Lorenzo Puleo <email@hidden>)

  • Prev by Date: Re: iDisk and Xcode
  • Next by Date: Undo, First Responder, and outsider nibs ...
  • Previous by thread: Alias Record, new methods?
  • Next by thread: Re: Alias Record, new methods?
  • Index(es):
    • Date
    • Thread