Is it possible to change proxy settings ( like what networksetup does ) in a command line tool app ? I mean I want to write a command line tool that can change network and proxy settings in mac.

If yes, Can anybody provide any source that I can go and search for starting points and learn about it ?

有帮助吗?

解决方案

You can simply use NSTask to run networksetup with desired arguments. In order to do that you must include AppKit framework to your application. (But please note that you need root privilege to use networksetup in order to change proxy settings)

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top