Re: App's r/w access to /Library/Preferences/OurAppPrefsFolder, using Xcode 3.2.6
Re: App's r/w access to /Library/Preferences/OurAppPrefsFolder, using Xcode 3.2.6
- Subject: Re: App's r/w access to /Library/Preferences/OurAppPrefsFolder, using Xcode 3.2.6
- From: Scott Ribe <email@hidden>
- Date: Mon, 01 Jul 2013 21:24:35 -0600
On Jul 1, 2013, at 7:29 PM, Jim Prouty wrote:
> We allow our Macintosh application to share some preferences among all users on a computer, and our app reads and writes those setting to files and folders within one of two places:
>
> /Library/Preferences/OurAppPrefsFolder
>
> or
>
> /Users/<username>/Library/Preferences/OurAppPrefsFolder
>
> Mac OS X 10.8 refuses to let us read or write within the shared preferences folder (/Library/Preferences/OurAppPrefsFolder).
>
> We want to restore this capability to our users.
>
> Our app is not sandboxed currently, but the com.apple.security.temporary-exception.shared-preference.read-write key seems to be the solution.
I'm not sure you can do that... The com.apple.security.temporary-exception.shared-preference.read-write key takes a path starting with / as the path into the user's prefs directory, in other words:
<key>com.apple.security.temporary-exception.shared-preference.read-write</key>
<array>
<string>/Library/Preferences/OurAppPrefsFolder/com.whatever.plist</string>
</array>
Will actually give your application access to /Users/<username>/Library/Preferences/OurAppPrefsFolder/com.whatever.plist, so there would appear to be no way to use that key to do what you want.
*However*, the other key for read-write access to a file, I don't remember it off the top of my head, I think treats an absolute path the way you need. I'm just not sure if your app would actually be accepted if you use that key to access a preferences file, since supposedly you should not use that to access preferences (according to the docs, but maybe that's only for prefs in the users' folders--sure would be nice if the documentation were more than about 1/3 complete).
--
Scott Ribe
email@hidden
http://www.elevated-dev.com/
(303) 722-0567 voice
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden