Karl Becker wrote:
> In fact, just storing the preferences in the same directory as the
> stack itself helps a lot... moving the program from one computer to
> the next is a lot easier, and you don't have to futz with a separate
> Registry on Windows and making a text file on Mac... just have a
> file, prefs.txt or something, that you can read any user-defined
> preferences from.
Bad idea. The reason preferences are stored in the user's preference
folder in their system folder, is so multiple users can access the same
application over a network without breaking each other's settings.
(Strictly speaking, its each *machine* rather than each *user* that gets
its own prefs, but for most Mac users this is equivalent.)
Leston, why do you need to know where the app was installed?
Applications should be path-independent: the user should be able to
rename not only the disk it is on, but the folders and even the
application itself without breaking anything. This isn't Windows you
know! Not only *can* users rename folders and disks, but they *expect*
to.
Basically, the only folders you should expect to remain untouched by the
user are (1) the system folder and its subdirectories and (2) any
subdirectories you create within the directory that contains your app.
But the actual directory containing your app is subject to change
without notice.
--
Steven D'Aprano
==========================================
M.B. Sales Pty Ltd Ph: +61 3 9460-5244
A.C.N. 005-964-796 Fax: +61 3 9462-1161
Archives: http://www.mail-archive.com/metacard%40lists.best.com/
Info: http://www.xworlds.com/metacard/mailinglist.htm
Please send bug reports to <[EMAIL PROTECTED]>, not this list.