• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: what user does a PreferencePane run as?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

References: 
 >what user does a PreferencePane run as? (From: Bill Janssen <email@hidden>)

  • Prev by Date: what user does a PreferencePane run as?
  • Next by Date: Re: NSDateFormatter Breaks on non-English OS
  • Previous by thread: what user does a PreferencePane run as?
  • Next by thread: Re: what user does a PreferencePane run as?
  • Index(es):
    • Date
    • Thread