Saving license files
Thomas Myers
tmyers at itainc.com
Thu Dec 20 06:42:43 PST 2007
I found a
>I'm leaning towards saving a license file in /Library/Application
>Support/MyProduct/. Can anyone (including Standard users) save to
>that location, or should there be a back-up method that should just
>save a copy to their Home ~/Library/Application Support/MyProduct/,
>just in case?
I found an apple tech note saying this path.
/Users/Shared/Library/Preferences.
This location was recommended by Apple Sample code.
http://developer.apple.com/samplecode/CFPrefTopScores/
CFPreferences by design only allows write access to the
kCFPreferencesAnyUser domain by a user with admin privileges. But
occasionally developers have had the need to store user preferences
that are both readable and writable by all users (without
authorization). Currently the only location that meets this
requirement is the </Users/Shared> directory. This sample
demonstrates how to use Core Foundation API's to access (globally
readable and writable) preferences in this location.
--
Thomas Myers - ITA,Inc.
(585)889-9119
5 Wood Sorrel mailto:tmyers at itainc.com
Rochester, NY 14624 http://www.itainc.com
C/C++, Photoshop Plug-Ins, Filemaker, Filemaker Plug-ins, Visual
Basic, Real Basic, SCSI, Firewire, USB, Applescript, XML, TWAIN,
Quicktime, Mac/Win cross platform solutions.
More information about the MacOSX-dev
mailing list