Version: 1.0

Posted: 2006-10-09

Build Requirements: XCode

Runtime Requirements: Carbon mach-o

View Source Code:

Download Sample (“”, 24.4K)
Download Sample (“CFPrefTopScores.dmg”, 82.5K)


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.

Document Revision History

Date Notes
2006-10-09How to access globally shared (writable) user preferences without requiring authentication.

Did this document help you?
Yes: Tell us what works for you.
It’s good, but: Report typos, inaccuracies, and so forth.
It wasn’t helpful: Tell us what would have helped.