You should be able to use the
Library/Preferences/directory within your app’s container for this. However, my general recommendation is that you avoid that (leave
Library/Preferences/as the preserve of NSUserDefaults) and instead create a directory within
Libarry/Application Support/. You can find that with
-[NSFileManager -URLForDirectory:inDomain:appropriateForURL:create:error:]with the
IMPORTANT Remember that these paths are relative to your app’s container, not in the user’s home directory, and thus you don’t need any extra entitlements to access them.
You should make to read the Migrating an App to a Sandbox section of the App Sandbox Design Guide, which shows how you can move things from the old place to the new place when the user first launches the sandboxed version of your app.
Share and Enjoy
Quinn “The Eskimo!”
Apple Developer Relations, Developer Technical Support, Core OS/Hardware
let myEmail = "eskimo" + "1" + "@apple.com"