• 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: Sherm Pendley <email@hidden>
  • Date: Wed, 1 Apr 2009 14:07:49 -0400

On Wed, Apr 1, 2009 at 1:54 PM, Mark Suman <email@hidden> wrote:

> The part that's tripping me up is launch System Preferences and then
> opening
> a certain pane.


Just open the .prefPane bundle itself - System Preferences.app knows how to
handle the rest. For instance:

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

Additionally, if the .prefPane hasn't been installed yet, System
Preferences.app will ask if you want to install it, and if so, whether to
install it globally or just for the current user. In the former case, it
will handle the necessary authentication for you.

sherm--

--
Cocoa programming in Perl: http://camelbones.sourceforge.net
_______________________________________________

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

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

  • Prev by Date: Re: [BUG] Cursor Flicker
  • 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