Re: Launching a preference pane from inside a Cocoa app
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