Re: system preferences and NSDictionary
Re: system preferences and NSDictionary
On Sat, Dec 14, 2002 at 05:02:00PM +0100, Jacques wrote:
>
Hi folks,
>
>
Do you it's possible to read (and modify) the file containing the system
>
preferences (/private/var/db/SystemConfiguration/preferences.xml) using
>
>
(id)dictionaryWithContentsOfFile:(NSString *)path
An easy way to check this is to use the 'pl' command-line utility:
[p6:5008] ~%pl < /private/var/db/SystemConfiguration/preferences.xml
{
CurrentSet = "/Sets/8";
NetworkServices = {
1 = {
[...]
However, your changes may be overwritten by configd or something else
if you're editing the currently active preferences.xml file. Is there
a reason you're not using the SystemConfiguration framework?
<
http://developer.apple.com/techpubs/macosx/Networking/SysConfigOverview926/index.html>
<
http://developer.apple.com/samplecode/Sample_Code/Networking/MoreSCF.htm>
--
=Nicholas Riley <email@hidden> | <
http://www.uiuc.edu/ph/www/njriley>
Pablo Research Group, Department of Computer Science and
Medical Scholars Program, University of Illinois at Urbana-Champaign
_______________________________________________
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.