Fwd: How to read preferences at startup...
Fwd: How to read preferences at startup...
- Subject: Fwd: How to read preferences at startup...
- From: JoanBa <email@hidden>
- Date: Thu, 27 Nov 2003 09:13:58 +0100
>
Hi,
>
>
I need to read from a preferences file a value needed to configure the
>
keyboard driver at startup. I use an startup item to configure the
>
driver.
>
>
If I use functions CFPreferencesSetAppValue and
>
CFPreferencesAppSynchronize to create the preferences file, it's
>
created in ~/Library/Preferences, which is correct but the startup
>
item ( I suppose executed as root ) could not find it. The utility
>
'defaults' can find the preferences, from a Terminal owned by the
>
current user.
>
>
If I use low level calls to control where the preferences file must be
>
placed, CFPreferencesSetValue and CFPreferencesSynchronize, and
>
specify kCFPreferencesAnyUser and kCFPreferencesAnyUser, the
>
preferences file is created in /Library/Preferences/Network. Also the
>
startup item could not find the preferences. The utility 'defaults'
>
could not find this file. This approach works on MacOS X 10.2 but not
>
in 10.3.
>
>
How can I create a preferences file readable at startup time ??
>
>
Best regards,
>
Joan B. Altadill
_______________________________________________
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.