• 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
Global preferences using CFPreferences
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Global preferences using CFPreferences


  • Subject: Global preferences using CFPreferences
  • From: Larry Fransson <email@hidden>
  • Date: Tue, 18 May 2004 17:29:41 -0700

I figure that if i'd like an application to be usable by any user, then
the registration information needs to be available globally, which
means using CFPreferences. I'm running into a problem, though. It
appears that admin privileges are required in order to set those prefs.
Here is what I'm using:

CFPreferencesSetValue (
snKey,
serialNumber,
kCFPreferencesCurrentApplication,
kCFPreferencesAnyUser,
kCFPreferencesCurrentHost
);

This works fine as long as it's an admin user who's doing the
registration. But when I run the application from an regular non-admin
account, I can't change anything. What did I miss?

Larry Fransson
Seattle, WA
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.


  • Follow-Ups:
    • Re: Global preferences using CFPreferences
      • From: Finlay Dobbie <email@hidden>
    • Re: Global preferences using CFPreferences
      • From: Larry Fransson <email@hidden>
  • Prev by Date: Re: window rotation
  • Next by Date: Re: window rotation
  • Previous by thread: Re: Textfield and s default button
  • Next by thread: Re: Global preferences using CFPreferences
  • Index(es):
    • Date
    • Thread