>
> On Nov 21, 2005, at 3:47 PM, Ben Kazez wrote:
>
>> On Nov 21, 2005, at 3:45 PM, glenn andreas wrote:
>>
>>> On Nov 21, 2005, at 3:29 PM, Nick Zitzmann wrote:
>>>
>>>> I already searched the archives and found no answer to this
>>>> question...
>>>>
>>>> Is it possible to "quit" a widget (that is, make its window and
>>>> the background client application go away) from its plugin, and
>>>> if so, then how is this done? I already tried -[NSApplication
>>>> terminate:] and the widget did not close or go away.
>>>>
>>>> Nick Zitzmann
>>>> <http://www.chronosnet.com/>
>>>
>>> You could always try exit(0)
>>>
>>> It may not be the nicest thing, but...
>>
>> I believe this will only kill the plugin, which will then
>> automatically restart. I think the only way to close a widget is to
>> kill its DashboardClient process, which is difficult since multiple
>> instances of a widget can be opened.
>>
>
> But the plugin is running in the DashboardClient process (plugins
> don't get their own process), so that DashboardClient would be
> terminated. It may get automatically restarted, though (I off hand
> don't remember if auto-restarting crashed widgets happens or not - I
> don't believe it does, since if something crashes, there's a good
> chance it'll crash again, which would cause it to be relaunch, crash,
> etc...)
>
The server has crash protection. So if you start crashing int he loop it
will stop launching you. Killing your process will not help you, nor is it
a good idea to do it.
> Multiple instances of the widget are also launched in their own
> process as well (at least they are in 10.4.3 - bring up a terminal
> window with "top" running and launch the same widget twice and see
> two instances of "DashboardC").
>
>
>> Maybe it's time to wish for a widget.close() function?
>
> That would certainly be a good suggestion...
>
>
> Glenn Andreas email@hidden
> <http://www.gandreas.com/> wicked fun!
> Widgetarium | the quickest path to widgets
>
> _______________________________________________
> Do not post admin requests to the list. They will be ignored.
> Dashboard-dev mailing list (email@hidden)
> Help/Unsubscribe/Update your Subscription:
> http://lists.apple.com/mailman/options/dashboard-dev/email@hidden
>
> This email sent to email@hidden
--------------------------------------------------
John Louch Internet #: email@hidden
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Dashboard-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/dashboard-dev/email@hidden
This email sent to email@hidden