How Do I Configure The Storage Locations For Application Data and Preferences?

The GLX Application Framework simplifies creating application data folders and storing preferences. Before you can call the glxapp_getPref, glxapp_setPref and glxapp_savePrefs handlers you must define where the preference files will be stored.

Note: Currently preference data is stored as Revolution stacks.

Locate Application Data and Preference Settings on General Tab

Specify Folder and File Locations

1) Provide a relative folder location to store application data in. The folder is relative to the user or shared application data folder for each platform.

2) Specify if you will be storing data in the user application data folder and/or the shared application data folder. Usually you will just be storing data in the User data folder.

3) For preference files on OS X you provide the name of the file that will be stored in the preference folder.

4) On Windows you specify the name of the file relative to the user application data folder. This is done since Windows has no specific folder for preferences and usually stores preferences in the Registry. Notice that in this example we are storing the preference file inside of the application data folder (1) which the framework will create when the application is launched.

Notes:

* Call glxapp_getProp("user preference file") to get the full path the preference file.

* Call glxapp_getProp("user data folder") to get the full path to the user data folder (you must have the "user" checkbox checked).

* Call glxapp_getProp("shared data folder") to get the full path to the shared data folder (you must have the "shared" checkbox checked).

* If Also use shared preference file is checked then the framework will store a preference file in the shared data folder. You access the shared preference file by passing "shared" as the last parameter to any of the functions mentioned above.

0 Comments

Add your comment

This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.