Re: NSFileManager and aliases
Re: NSFileManager and aliases
- Subject: Re: NSFileManager and aliases
- From: Ondra Cada <email@hidden>
- Date: Tue, 16 Apr 2002 10:52:49 +0200
On Tuesday, April 16, 2002, at 10:29 , Thomas Lachand-Robert wrote:
Which is naturally an exact opposite of what I wanted. The very reason I'
ve used Trash instead of rm -rf was since I wanted to be able to return
back to the old app in case the new release is not quite good.
Then don't use aliases.
I don't, ever. Mac OS X does, though. Like in Dock or in the Recent Files
mechanism. If...
Nobody forces anyone to use aliases.
...this was true, which it is *NOT*, I would not complain a bit: I would
just set the global default "NSUseSymLinksAlways", and be happy (but for
support, but that's another story).
Generally speaking, I don't understand well the point.
The point is that there is (AFAIK) no such default, and thus any Mac OS X
user is *forced* to cope with aliases.
Now a suggestion (fell free to comment, eventually we could file a
feature request on this):
I think a useful improvement to aliases would be to have them recognized
as symbolic links by the Unix tools. If I understand well the machinery,
it should not be very difficult:
-- Aliases doesn't need to have data fork (I don't know if they have, but
usually they don't, they appear as 0-sized files in the terminal.
-- Symbolic links doesn't have any resource fork, but the path is coded
somewhere in their data fork.
So a simple solution would be to have all aliases copying the path they
already store inside their data fork, in addition to their resource fork.
At the first look this seems nice. Add a system-wide switch "use path
primarily" or "use fsref primarily", and I guess we would be quite close
to a really good solution.
From the symlink POV it looks really nice (of course, unless I am
overlooking something obvious ;)). Anyone who understand aliases well
wants to comment on from that POV?
---
Ondra Cada
OCSoftware: email@hidden
http://www.ocs.cz
2K Development: email@hidden
http://www.2kdevelopment.cz
private email@hidden
http://www.ocs.cz/oc
_______________________________________________
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.