• 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
Configuring network prefs programmically
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Configuring network prefs programmically


  • Subject: Configuring network prefs programmically
  • From: <email@hidden>
  • Date: Wed, 8 Jan 2003 22:38:42 -0800

Hi,

I have been thinking about how to change the network prefs programmically. Either using AppleScript or C/ObjC.

First I looked into AppleScript, but the dictionaries available for SystemServices and System Preferences dont allow any configuration.

Then I looked into the developer docs. I ran into SystemConfiguration framework. So I wrapped a little inspector which loads all keys from the dynamic cache and allows you to get the values of those keys (via -description). Unfortunately I really can't make head or tails of the whole thing. I can't figure out how to enumerate all network configs, change them, and add/remove them.

Can anyone point me to better documentation/sample code? Or maybe a better way? Most of the sample code I saw online is for open transport configuration.

Thanks!
-ryan
_______________________________________________
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.

  • Follow-Ups:
    • Re: Configuring network prefs programmically
      • From: Chris Hanson <email@hidden>
    • Re: Configuring network prefs programmically
      • From: Finlay Dobbie <email@hidden>
    • Re: Configuring network prefs programmically
      • From: Christian Weykopf <email@hidden>
    • Re: Configuring network prefs programmically
      • From: Stéphane Sudre <email@hidden>
  • Prev by Date: Re: "Toll free bridged" types
  • Next by Date: Re: Conceptual problem
  • Previous by thread: Re: Help File Icon in Help Viewer
  • Next by thread: Re: Configuring network prefs programmically
  • Index(es):
    • Date
    • Thread