I have been using some material published on these boards to create a prefs file mechanism in a utility app I am writing. At present I am writing a text file into Users/Me/Library/Preferences/MyCompanyMyAppName/Prefs_AppName.txt. This is working fine but I made the mistake of doing some web research and found the following about the preferences folder published on Apples web site:
. The same web page states that I should probably be writing to a folder in /Library/Application Support/ :This directory contains app-specific preference files. You should not create files in this directory yourself. Instead, use the NSUserDefaults class or CFPreferences API to get and set preference values for your app.
Bearing in mind that I (we?) use Livecode to avoid terms such as NSUserDefaults am I likely to cause any problems by writing a text file to the preferences folder inside the user library?Use this directory to store all app data files except those associated with the user’s documents. For example, you might use this directory to store app-created data files, configuration files, templates, or other fixed or modifiable resources that are managed by the app. An app might use this directory to store a modifiable copy of resources contained initially in the app’s bundle. A game might use this directory to store new levels purchased by the user and downloaded from a server.
All content in this directory should be placed in a custom subdirectory whose name is that of your app’s bundle identifier or your company.
thanks
Simon