Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Quitting a widget from its plugin?



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.


Maybe it's time to wish for a widget.close() function?

Ben
_______________________________________________
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
References: 
 >Quitting a widget from its plugin? (From: Nick Zitzmann <email@hidden>)
 >Re: Quitting a widget from its plugin? (From: glenn andreas <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.