Re: Clicking the Dock
Re: Clicking the Dock
- Subject: Re: Clicking the Dock
- From: "Gerriet M. Denkmann" <email@hidden>
- Date: Thu, 27 Oct 2005 19:04:03 +0200
On 27.10.2005, at 12:08, j o a r wrote:
On 27 okt 2005, at 11.59, Gerriet M. Denkmann wrote:
Is there a way that an active application can notice that someone has
clicked on its dock icon?
What are you trying to do?
But regardless, a simple search for "click dock icon" over at
Cocoabuilder yields, among other things:
<http://www.cocoabuilder.com/archive/message/cocoa/2005/3/23/131200>
Thanks for this link. Following it, there was a mention of
-applicationShouldHandleReopen:hasVisibleWindows: which, although
deceptively misnamed (it really should be called:
"...hasVisibleOrMiniaturizedWindows:") is exactly the thing I was
looking for.
What was I trying to do?
I have a program (an IORegistryExplorer look-alike) which (among other
things) can show a window with the temperatures.
When I click on the dock (and no other window is visible) I want to see
this temperature-window.
Thanks again for this most helpful link!
Kind regards,
Gerriet.
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden