Writing to /Library/Preferences with CFURLWriteDataAndPropertiesToResource
Writing to /Library/Preferences with CFURLWriteDataAndPropertiesToResource
- Subject: Writing to /Library/Preferences with CFURLWriteDataAndPropertiesToResource
- From: Thomas McHale <email@hidden>
- Date: Mon, 20 Sep 2010 16:24:22 -0700
Hi All,
I am trying to write a plist/dictionary to /Library/Preferences with the CFURLWriteDataAndPropertiesToResource() API. If the URL is ~/Library/Applications/filname.plist then everything works just fine. But if the URL is /Library/Preferences/filename.plist then then API returns NO and the errorCode is -10 (kCFURLUnknownError). I know other apps write to this folder. How do they do it? I tried setting seteuid() and setegid() to no avail.
Any ideas would be appreciated.
Thanks, Tom McHale
|
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Darwin-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden