I can use NSFileManager to create a XYZ folder in "/Library/Application Support" in Mac OS X 10.5 and 10.6. However, in 10.7, it says "You don't have permission to save XYZ in the folder 'Application Support'".
Does anyone know what I can do (e.g. which API to call) to get that permission to create the folder? Thanks.
Are you using sandboxing? If so, you’re writing to the wrong place. In either case, you should be using NSSearchPathForDirectoriesInDomains(NSApplicationSupportDirectory, NSUserDomainMask, YES)
to find the right path rather than hard-coding it.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With