Skip navigation.
 
mlNSUserDefaults writing to machine wide preferences?
FROM : Jim Correia
DATE : Thu Jan 30 20:57:01 2003

I notice that if I put a preference in
/Library/my.bundle.identifier.plist by hand, that it is picked up in
the default search path for NSUserDefaults.

Is there a way to use NSUserDefaults to put something there, or do I
just need to make the CF call?

CFPreferencesSetValue(CFSTR("Key"), CFSTR("Value"),
kCFPreferencesCurrentApplication, kCFPreferencesAnyUser,
kCFPreferencesCurrentHost);

(I guess the same question applies to per host prefs...)

Thanks,
Jim
_______________________________________________
cocoa-dev mailing list | <email_removed>
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.

Related mailsAuthorDate
mlNSUserDefaults writing to machine wide preferences? Jim Correia Jan 30, 20:57
mlRe: NSUserDefaults writing to machine wide preferences? Chris Parker Jan 30, 23:25
mlRe: NSUserDefaults writing to machine wide preferences? Jim Correia Jan 30, 23:29
mlRe: NSUserDefaults writing to machine wide preferences? Chris Parker Jan 30, 23:58