Reputation: 2099
I hope to migrate one of my windows app to mac.
As we know, on vista/win7, there are public data directories that one app can add, save and delete data files without RAC permission.
Are there same directories on Mac/Cocoa?
or
I can store the data to any directory without any problem and any permission?
Welcome any comment
Upvotes: 5
Views: 1841
Reputation: 13753
These are the 3 you can write to:
~/Library/Application Support/app-identifier
~/Library/app-identifier
~/Library/Caches/app-identifier
(replace app-identifer with your app identifier)
More info here under "File-System Usage Requirements for the Mac App Store"
Upvotes: 8
Reputation: 3375
You can, by default, unless you enable sand-boxing, write to any directory the user has access to. Generally though, Cocoa apps store data in the user's home directory in ~/Library/Application Support/<your-app-name>
Upvotes: 7