RE: NSFileManager
RE: NSFileManager
- Subject: RE: NSFileManager
- From: jgo <email@hidden>
- Date: Fri, 29 Jun 2001 04:28:29 -0700
>
Fritz Anderson <email@hidden> Sun, 2001-06-24 14:51:06 -0500
>
Working directories are a convenience to programmers, and are the
>
only way for a user to stay sane in the face of a command line,
>
where the context is mostly invisible, and therefore must be
>
strictly treated as a single-valued mode.
>
>
It's not clear to me what the "current working directory" in the
>
Finder is. You can answer this easily if the Finder is launching
>
the application from its home directory in an icon-only view.
>
The answer becomes less easy if the view contains more than one
>
directory (as in column or expanded-list views);
Which window is key, and what is selected? I'd say it's the
most leaf-like directory in a window that is key, in which
directory you have something selected.
>
or if there is more than one Finder window open;
>
or if you launch the application in the network-mounted
>
directory A by double-clicking in a document in directory B
At that time, the PWD is B; it has to reach out to the
application's directory to launch it, just as you can
run a shell script by typing, e.g. ../fredscript
or ./george/henry/ianscript without changing your PWD.
>
and then return to the Finder, days later, to double-click a
>
document in directory C.
At that time, the PWD is C.
But, now, let's say you drag a file icon from a finder window &
view to an app icon on the dock. That's a bit like typing
/usr/local/bin/someapp ./kelli/lei/mina
to run the program someapp on the file mina, in which case
your PWD remains whatever it was before the drag, I would
guess.
John G. Otto Nisus Software, Engineering
www.infoclick.com www.mathhelp.com www.nisus.com software4usa.com
EasyAlarms PowerSleuth NisusEMail NisusWriter MailKeeper QUED/M
Will program Macs for food.