• 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: Setting Web Proxy programmatically
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Setting Web Proxy programmatically


  • Subject: Re: Setting Web Proxy programmatically
  • From: Jean-Daniel Dupas <email@hidden>
  • Date: Thu, 20 Mar 2008 14:01:13 +0100


Le 20 mars 08 à 13:26, parag vibhute a écrit :

I am glad to say that I am able to write the code which can set all four keys releated to PAC file URL. As suggested, I used System Configuration framework. But I think System Configuartion framework (& scutil command) only accesses the dynamic store. I went through PDFs but not found useful info to change persistant store. System preferences values are kept in persitant store by Preferences monitor & on file-system, its location is "/Library/Preferences/ System Configuration/preferences.plist". But whatever I tried with the APIs & with scutil command, those changes never get reflected in preferences.plist & hence System Preferences also shows old entries.

One more drawback is these APIs are used to change values in dynamic store & on reboot, dynamic store always gets recreated which flush my changes.

Can anybody suggest how can I change persistant store & thereby System Preferences programmatically.

Thanks,
Palav

I did a program long ago that did it, I don't think I had to do something special to change proxy settings.
I have just used MoreSCF the way it's describe in the read me and it worked. (http://developer.apple.com/samplecode/MoreSCF/listing14.html)


Is your tool running with enough privilege to commit changes ?

_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Follow-Ups:
    • Re: Setting Web Proxy programmatically
      • From: "parag vibhute" <email@hidden>
    • Shared itunes movies on cocoa app
      • From: Andrea Maschio <email@hidden>
References: 
 >Setting Web Proxy programmatically (From: "parag vibhute" <email@hidden>)
 >Re: Setting Web Proxy programmatically (From: "Cocoa Developer" <email@hidden>)
 >Re: Setting Web Proxy programmatically (From: "parag vibhute" <email@hidden>)
 >Re: Setting Web Proxy programmatically (From: Jean-Daniel Dupas <email@hidden>)
 >Re: Setting Web Proxy programmatically (From: "parag vibhute" <email@hidden>)
 >Re: Setting Web Proxy programmatically (From: Jean-Daniel Dupas <email@hidden>)
 >Re: Setting Web Proxy programmatically (From: "parag vibhute" <email@hidden>)
 >Re: Setting Web Proxy programmatically (From: Jean-Daniel Dupas <email@hidden>)
 >Re: Setting Web Proxy programmatically (From: "parag vibhute" <email@hidden>)
 >Re: Setting Web Proxy programmatically (From: "parag vibhute" <email@hidden>)

  • Prev by Date: Custom Shaped Buttons
  • Next by Date: Shared itunes movies on cocoa app
  • Previous by thread: Re: Setting Web Proxy programmatically
  • Next by thread: Shared itunes movies on cocoa app
  • Index(es):
    • Date
    • Thread