Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: CFPreferencesSetAppValue



Ok, That's insanely bad to do..

It's kCFPreferencesCurrentApplication, not user.

Value would be a CFNumerRef.

CFPreferencesSetAppValue(CFSTR("magicNumber"), (CFNumberRef)[NSNumber numberWithInt:69000], kCFPreferencesCurrentApplication);

Ack, at 5/4/05, Roland Silver said:

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?
--


Sincerely, Rosyna Keller Technical Support/Holy Knight/Always needs a hug

Unsanity: Unsane Tools for Insanely Great People
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/email@hidden

This email sent to email@hidden
References: 
 >CFPreferencesSetAppValue (From: Roland Silver <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.