• 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
CFPreferencesSetAppValue
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

CFPreferencesSetAppValue


  • Subject: CFPreferencesSetAppValue
  • From: Roland Silver <email@hidden>
  • Date: Wed, 4 May 2005 20:04:20 -0600

I can get an integer value from a preferences file, but I don't understand how to use CFPreferencesSetAppValue to set an integer value into a preferences file. For instance:

CFStringRef key = CFSTR("magicNumber");
CFPropertyListRef value;
CFStringRef applicationID = kCFPreferencesCurrentUser;

CFPreferencesSetAppValue(key, value, applicationID);

Suppose I want to set the preference value associated with "magicNumber" to 69000; what do I set value to?

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: CFPreferencesSetAppValue
      • From: Rosyna <email@hidden>
  • Prev by Date: launchd chokes on .plist
  • Next by Date: Re: Vertically Centering a String within a View
  • Previous by thread: launchd chokes on .plist
  • Next by thread: Re: CFPreferencesSetAppValue
  • Index(es):
    • Date
    • Thread