• 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
Launching Network System Preferences
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Launching Network System Preferences


  • Subject: Launching Network System Preferences
  • From: Daniel Zimmerman <email@hidden>
  • Date: Thu, 26 Feb 2004 22:23:28 -0800

I'm trying to do what Safari does when it launches the Network System Preferences for the user to change their proxy settings but It's not working.
I found that on Panther I could use the following code and it would correctly launch the System preferences and switch to the Network panel:

ICInstance myInst;
OSStatus err1 = ICStart(&myInst, kAdobeLMControlSignature);
if (err1 == noErr) {
OSStatus err2 = ICEditPreferences(myInst, kICUseHTTPProxy);
ICStop(myInst);
}

But this code fails on Jaguar with an error 1015 being returned by ICEditPreferences. there is no documentation on what a 1015 error is.
Also on panther, even though I'm passing in the kICUseHTTPProxy key, it's not going to the proxies tab of the network panel. It's not critical that it does, since I really just want the user to go to the Network panel in general, but I was surprised that it didn't work.

So my questions are:

1) Is this the right way to bring up the Network Panel
2) The documentation for IC says that the ICEditPreferences call must have a configuration setup before calling it. However, all of the configuration calls are not available on OS X. Is this why it's failing on Jaguar (fixed on Panther)
3) I looked into Launch Services, but could not find an appropriate solution.

I'd appreciate any suggestions/help with this.
Thanks,
Dan
_______________________________________________
macnetworkprog mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/macnetworkprog
Do not post admin requests to the list. They will be ignored.


  • Follow-Ups:
    • Re: Launching Network System Preferences
      • From: Quinn <email@hidden>
  • Prev by Date: Re: Keeping OT app responsive
  • Next by Date: Re: Launching Network System Preferences
  • Previous by thread: Re: Keeping OT app responsive
  • Next by thread: Re: Launching Network System Preferences
  • Index(es):
    • Date
    • Thread