• 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: Launching a preference pane from inside a Cocoa app
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Launching a preference pane from inside a Cocoa app


  • Subject: Re: Launching a preference pane from inside a Cocoa app
  • From: Nick Zitzmann <email@hidden>
  • Date: Wed, 1 Apr 2009 12:03:00 -0600


On Apr 1, 2009, at 11:54 AM, Mark Suman wrote:

I would like to pass in something like "set the current pane to pane id \"com.foo.prefpane\" to the event to tell System Preferences to change to my pane.

Can anyone tell me how to pass that in?


You're making this way too complicated. Try this instead:

[[NSWorkspace sharedWorkspace] openFile:@"/System/Library/ PreferencePanes/Network.prefPane"];

Of course, you would replace the string with the path to the preference pane you wish to load.

Nick Zitzmann
<http://www.chronosnet.com/>

_______________________________________________

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


References: 
 >Re: Launching a preference pane from inside a Cocoa app (From: Mark Suman <email@hidden>)

  • Prev by Date: Re: Launching a preference pane from inside a Cocoa app
  • Next by Date: Re: [BUG] Cursor Flicker
  • Previous by thread: Re: Launching a preference pane from inside a Cocoa app
  • Next by thread: Re: Launching a preference pane from inside a Cocoa app
  • Index(es):
    • Date
    • Thread