• 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: Preference pane deployment
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Preference pane deployment


  • Subject: Re: Preference pane deployment
  • From: Sherm Pendley <email@hidden>
  • Date: Sun, 25 Nov 2007 17:55:44 -0500

On Nov 25, 2007, at 3:22 PM, patrick machielse wrote:

Op 25 nov 2007, om 18:41 heeft Sherm Pendley het volgende geschreven:

You could use NSWorkspace's -openFile: to open the .prefpane bundle as a document. It's a registered document type for System Preferences.app, which will then give the user the option of installing it for that user only (in ~/Library/PreferencePanes) or for all users (/Library/PreferencePanes). The app will also take care of authorizing as admin if needed.

If you choose this method, you will want to make sure that the System Preferences application is closed before you try to install your new pane (or restart it after you've installed). If the user has used / loaded the preference pane during an upgrade, the behavior of the pane after install is unpredictable, presumably because it is not possible to unload Objective-C code.

Good point. Kind of annoying though. With all the "smart" behavior that System Preferences does have with respect to installing new panes. It seems a strange omission that it can't restart itself when needed.


sherm--

Web Hosting by West Virginians, for West Virginians: http://wv-www.net
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


References: 
 >Re: Preference pane deployment (From: patrick machielse <email@hidden>)

  • Prev by Date: Re: NSWindow - Sheets - background alpha value
  • Next by Date: Re: [ABRecord setValue:forProperty:] with custom property?
  • Previous by thread: Re: Preference pane deployment
  • Next by thread: How to get window title bar font ^size^ ?
  • Index(es):
    • Date
    • Thread