• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: system preferences and NSDictionary
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: system preferences and NSDictionary


  • Subject: Re: system preferences and NSDictionary
  • From: Nicholas Riley <email@hidden>
  • Date: Sat, 14 Dec 2002 10:34:53 -0600
  • Mail-followup-to: Jacques <email@hidden>, email@hidden

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.

References: 
 >system preferences and NSDictionary (From: Jacques <email@hidden>)

  • Prev by Date: Re: How to toggle the subviews of a split view?
  • Next by Date: Best way to save user preferences
  • Previous by thread: system preferences and NSDictionary
  • Next by thread: Re: system preferences and NSDictionary
  • Index(es):
    • Date
    • Thread