Re: ByHost Preferences
Re: ByHost Preferences
- Subject: Re: ByHost Preferences
- From: "Ricardo Cabral" <email@hidden>
- Date: Thu, 22 Jul 2004 15:01:30 -0000 (AZOST)
>
Message: 1
>
From: Larry Fransson <email@hidden>
>
Subject: Re: ByHost Preferences
>
Date: Wed, 21 Jul 2004 11:22:31 -0700
>
To: Cocoa Apple <email@hidden>
>
>
On Jul 21, 2004, at 11:22:31, Larry Fransson wrote:
>
>
>
Read up on CFPreferences. That's how they got there. You don't need
>
to know the MAC address. You just need to pass the appropriate
>
constants for application, user, and current host when you read the
>
prefs.
>
thanks for that tip, i finally made it. :)
here's the code i used to read a key from the screensaver prefs (stored in
the byhost folder inside preferences), in case anyone needs to do the
same.
CFStringRef appID = CFSTR("com.apple.screensaver");
CFStringRef key = CFSTR("moduleName");
CFStringRef name;
// Set up the preference.
name = CFPreferencesCopyValue(key, appID,kCFPreferencesCurrentUser,
kCFPreferencesCurrentHost);
_______________________________________________
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.