Global preferences using CFPreferences
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.