|[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]|
with all of the appropriate error checking not shown here. under Mac OS 9,
it works great; but under OS X i get a -667 error from the ICSetPref() call.
Yes, we have to go through another framework to get to and set the proxy settings. On OS X there is the concept of interfaces, you can see this by going into the Network Preference pane of SystemPreferences.app. Typically there are interfaces such as 'Built in Ethernet', 'Airport' and 'Modem'. Furthermore, to set these system-wide preferences, one must authenticate themselves as the root user.
Since we don't have UI to do this in InternetConfig on X (for example, which interface do you want the proxy settings to be applied to, and are you really the root user?) -- and this hit us pretty close to GM -- we decided the best solution would be to tell users to set the proxy information themselves in SystemPreferences. The alternative was that IC would allow you to set these, but it wouldn't sync with the rest of the system (i.e. not everything would get these settings).
Getting these preferences with ICGetPref will work, it is just setting them that is prohibited.
The keys that are affected by this in GM are:
Furthermore, in the release after GM, these keys will also go through SystemPreferences and subject to the same limitation:
I apologize for the lack of documentation on this, we'll try to get stuff up. We're also looking at better ways to do this.
|>managing proxy settings under OS X (From: Joey Gray <email@hidden>)|
Visit the Apple Store online or at retail locations.
Copyright © 2011 Apple Inc. All rights reserved.