FROM : Nicholas Riley
DATE : Sat Dec 14 17:34:53 2002
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_removed>> | <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_removed>
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.
DATE : Sat Dec 14 17:34:53 2002
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_removed>> | <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_removed>
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.
| Related mails | Author | Date |
|---|---|---|
| Jacques | Dec 14, 17:02 | |
| Nicholas Riley | Dec 14, 17:34 | |
| ssudre2 | Dec 14, 17:38 |






Cocoa mail archive

