On Thu, 11 Jun 2009 07:19:30 -0400, KK wrote:
> Hello,
> I am writing a "Foundation tool" - a command-line utility that uses
> Objective-C and the Foundation framework, and I'm trying to save
preferences
> under the application domain.. My understanding is that you would
need a
> bundle ident
To get that level of control, you'll need to use CFPreferences:
CFPreferencesSetValue(key, value, bundleID, kCFPreferencesAnyUser,
kCFPreferencesCurrentHost);
if(!CFPreferencesAppSynchronize(bundleID)){
// Handle failure
}
-Sidney
On Fri, Jun 12, 2009 at 7:18 AM, KK wrote:
> Yes... I se
Yes... I see. Thank you.
My other question is, can you change where this .plist file goes? My tool
runs as root, so when I use NSUserDefaults, it saves the .plist file in
/private/var/root/Library/Preferences, but I would prefer that it go right
in /Library/Preferences ... is this possible?
On Thu
On Jun 11, 2009, at 5:19 AM, KK wrote:
I am writing a "Foundation tool" - a command-line utility that uses
Objective-C and the Foundation framework, and I'm trying to save
preferences
under the application domain.. My understanding is that you would
need a
bundle identifier to do this, but
Hello,
I am writing a "Foundation tool" - a command-line utility that uses
Objective-C and the Foundation framework, and I'm trying to save preferences
under the application domain.. My understanding is that you would need a
bundle identifier to do this, but if it's just a tool, can it have a bundl