• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Fwd: How to read preferences at startup...
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

  • Prev by Date: Re: NSApplication
  • Next by Date: intercepting f-key
  • Previous by thread: Re: Is it possible to interact with Microsoft Office X programmatically
  • Next by thread: intercepting f-key
  • Index(es):
    • Date
    • Thread