Re: What's the friendliest way to restart the Dock?
Re: What's the friendliest way to restart the Dock?
- Subject: Re: What's the friendliest way to restart the Dock?
- From: "Sean McBride" <email@hidden>
- Date: Fri, 30 Oct 2009 16:56:24 -0400
- Organization: Rogue Research Inc.
On 10/30/09 1:47 PM, David Riggle said:
>My app uses an NSDockTilePlugin. When I update my app via Sparkle, I
>want the new dock plug-in to be loaded. Unfortunately, the
>SystemUIServer has already loaded the old plug-in and ignores the new
>plug-in. Ditto for the Dock. There's no API that I've found to force a
>dock plug-in to be reloaded.
>
>To flush out the old plug-in I've been doing "killall SystemUIServer
>Dock". That works, but the Dock's current state is lost (minimized
>windows, etc.). Is there a friendlier way to restart the Dock so it
>won't lose its current state?
Probably by sending it a quit apple event. Searching the web/archives
should yield lots of sample code on how to do that (in C, shell script,
applescript, etc.)
--
____________________________________________________________
Sean McBride, B. Eng email@hidden
Rogue Research www.rogue-research.com
Mac Software Developer Montréal, Québec, Canada
_______________________________________________
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