At 11.06 +0800 0-08-28, Lyndon While wrote:
>I've just started using MacHugs and I have a question about Hugs
>Preferences files.
>
>It seems that Preferences files have to be stored in the current
>working folder, i.e. the folder where my .hs file is located. Does
>this mean that I have to have a copy of my Preferences file in every
>folder from where I want to drag a .hs file? Isn't this awkward?

I wish I knew, since I developed this stuff together with Pablo Azero. :-)

But it seems that if you start Hugs by drag-and-dropping a file onto its
icon, then the working directory will be set to where this file is, and if
you do not have a file named "Hugs Preferences" in that directory, Hugs
will be started with some default settings.

You can get a Preferences file into this directory either by copying
another Preferences file into this working directory, or simply by running
and setting Hugs as you like it and then do a "Save Preferences" from the
"Edit" menu, in which a Preferences file will be created in the working
directory.

You can also open the Preferences file from an editor and edit it by hand.
I recall that Pablo said that the first line is the actual preferences and
subsequent lines are files to load, but I have not tried that feature out
myself -- perhaps Pablo can explain. (And all files working with MacHugs
should have MacOS line separators.)

Anyway, the normal way to develop is to have one directory for each
project, and different projects normally have different preferences. For
example, you could decide to set the window title so that you know which
project you are in.

So this is why we did it that way.

  Hans Aberg



Reply via email to