Saving Preferences

Graham Samuel livfoss at blueyonder.co.uk
Tue Sep 30 16:49:01 EDT 2003


On Tue, 30 Sep 2003 14:21:48 -0500, "Ken Ray" <kray at sonsothunder.com> wrote:
>
>>  What are you favorite ways of saving Preferences?
>
>Read in from an external file on startup; if the file doesn't exist,
>default prefs are applied inside the program an a new prefs file with
>the defaults is written out to disk. This way, if someone wants to reset
>their prefs to the defaults, all they need to do is throw away the prefs
>file.
>
I agree - on the Mac, there are specific places for Preferences 
files, and on Windows we have Application Data - although I am not 
sure exactly if/when permissions get to be a problem. The kind of 
prefs I'm interested in usually amount to a few flags which can 
easily be stored in a text file - of course if prefs are a lot more 
extensive then some other kind of data structure may be needed.

My additional 2 eurocents

Graham
-- 
-------------------------------------------------------------------
          Graham Samuel / The Living Fossil Co. / UK & France



More information about the use-livecode mailing list