Re: Keeping track of files, i.e. aliases, NSURL's?
Re: Keeping track of files, i.e. aliases, NSURL's?
- Subject: Re: Keeping track of files, i.e. aliases, NSURL's?
- From: Finlay Dobbie <email@hidden>
- Date: Wed, 28 Aug 2002 15:16:06 +0100
On Wednesday, August 28, 2002, at 02:22 pm, Ondra Cada wrote:
My application needs to keep track of files while it runs, so ... it
will be able to resolve to the new location of the file if it has
moved.... What is the preferred way to do this in Cocoa?
The preferred way is *NOT* to do that, since it is error-prone and
brings a completely crazy behaviours. All what is needed is to have
another filesystem mounted, and at once -- from plain user's POV quite
mysteriously -- any "move tracking" becomes to work in a completely
haphazard way.
Ondra, I'm sure we've had this debate before, and you lost ;-)
The best and most convenient way to handle a file which disappeared is
to show an alert "Hey! File XXX disappeared -- you must have deleted
or moved it.".
And you claim THAT is a good user experience?
Anyway, there is no built-in way of handling of aliases (how this is
done in Carbon) in Cocoa, but there are several options here:
http://www.cocoadev.com/index.pl?CarbonCompatibility
-- Finlay
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.