• 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: Clicking the Dock
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: Clicking the Dock
      • From: "Sean McBride" <email@hidden>
References: 
 >Clicking the Dock (From: "Gerriet M. Denkmann" <email@hidden>)
 >Re: Clicking the Dock (From: j o a r <email@hidden>)

  • Prev by Date: Re: Cocoa window initially hidden in IB?
  • Next by Date: Re: Cocoa window initially hidden in IB?
  • Previous by thread: Re: Clicking the Dock
  • Next by thread: Re: Clicking the Dock
  • Index(es):
    • Date
    • Thread