Re: what user does a PreferencePane run as?
Re: what user does a PreferencePane run as?
- Subject: Re: what user does a PreferencePane run as?
- From: "Stephen J. Butler" <email@hidden>
- Date: Tue, 30 Jun 2009 19:08:37 -0500
On Tue, Jun 30, 2009 at 7:01 PM, Bill Janssen<email@hidden> wrote:
> I'm working on a system prefs pref pane for my application. I'd like to
> have it read the user's preferences for that application, but I can't
> find out where it says what user the System Preferences application runs
> as, and how to control that, or whether that's possible.
It always runs as the user who launched it. How are you trying to read
preferences? If you're using NSUserDefaults, that won't work. Since
you're inside the System Preferences.app, NSUserDefaults reads the
preferences for com.apple.systempreferences.
If you want to read/write the preferences for your app, use the
CoreFoundation CFPreferences API.
<http://developer.apple.com/documentation/CoreFoundation/Conceptual/CFPreferences/CFPreferences.html>
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden