Mailing Lists: Apple Mailing Lists
Image of Mac OS face in stamp
CFPreferencesSetValue
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

CFPreferencesSetValue



Hi,

I am trying to set preferences for all users of my application on the
current host.

When I call the function:



CFPreferencesSetValue (cstr, &j, kCFPreferencesCurrentApplication,
kCFPreferencesAnyUser,


kCFPreferencesCurrentHost);



where cstr is a CFStringRef and j is a long (both not NULL), the app
crashes.

Is there anything that needs to be called before this (such as creating the
preferences file)?

Am I calling it wrong?

If there is another way to do this, that would also be good.

Thanks,

Renee
_______________________________________________
carbon-development mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/carbon-development
Do not post admin requests to the list. They will be ignored.




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

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2011 Apple Inc. All rights reserved.