Prefs and Settings - best practices
Scott Rossi
scott at tactilemedia.com
Mon May 2 13:03:18 EDT 2005
Recently, Mikey wrote:
> So is there a consensus on best-practices to handle settings for Rev
> apps? Substack? File? Registry?
One could argue the OS developers made "Preferences" locations for a reason.
It's standard to write where appropriate for the platform: Registry makes
sense for Windows and the Library/Preferences folders make sense for OSX
(System Folder/Preferences for OS9). That being said, there are other
locations such as Application Support folders and equivalent, and one should
consider whether they are writing prefs for the current user or for any user
of the app on the current machine (save prefs under Current User or All
Users).
So while there are a few options for prefs locations, the one place I would
avoid saving preferences to is your app's folder. It's likely that write
permissions will be disabled there so prefs will not be saved, or even
worse, users will get an error or possibly a virus alert when your app tries
to save. Using the "designated prefs locations" makes better sense.
Regards,
Scott Rossi
Creative Director
Tactile Media, Multimedia & Design
-----
E: scott at tactilemedia.com
W: http://www.tactilemedia.com
More information about the use-livecode
mailing list