Is there any way to edit system preferences programmatically using cocoa? Is there some framework required? I need to do this to change the global proxy settings. Also, my app is sandboxed. Is there any sample code on how to do this? Thanks for your help.
相关问题
- Can't configure nginx as a proxy for tomcat wi
- NSOutlineView drag line stuck + blue border
- R connect via proxy in Ubuntu
- Java - How to get annotations from Proxy class?
- What is the actual purpose of designing a proxy cl
相关文章
- Converting (u)int64_t to NSNumbers
- “getter” keyword in @property declaration in Objec
- NSMenuItem KeyEquivalent “ ”(space) bug
- Angular CLI: Proxy websocket with proxy.conf.json
- OSX proxy issue with homebrew install
- What does a Mac sandboxed app get access to when t
- What to do with extra HTTP header from proxy?
- Detect if cursor is hidden on Mac OS X
You're looking for the System Configuration framework, but it's not going to be easy. I don't think it's possible for a sandboxed app, because it requires root privilege. (Just like you have to authenticate as an admin to modify settings in the Network pane of System Preferences.) See the System Configuration Programming Guidelines. Among other things, they say:
It goes on to recommend the MoreSCF sample code, but it's been relegated to the legacy documentation section.