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

Re: Dock Application Click


  • Subject: Re: Dock Application Click
  • From: "A.Sleep" <email@hidden>
  • Date: Wed, 23 Mar 2005 08:07:50 -0500

On Mar 23, 2005, at 7:41 AM, A.Sleep wrote:
On Mar 23, 2005, at 1:11 AM, A.Sleep wrote:
Currently I'm using applicationDidBecomeActive to trigger an action.
The issue becomes that even when using CMD-Tab when gaining focus the application triggers applicationDidBecomeActive (as expected).
What I want to do is find what delegate (if any) to use to hijack the dock click so the action is triggered ONLY when the application dock icon is clicked on (when the application is running, of course).
Thanks Hamish, Peter and Dave. I was pretty sure applicationShouldHandleReopen was the way to go after browsing NSApplication one more time late last night but I was to tired I couldn't make sense of anything anyway.

Had time to test this morning before heading out the door and applicationShouldHandleReopen is EXACTLY what I was looking for.


The event is triggered only on click and not on on focus or launch.

Excellent assistance.

---
A.Sleep - Jeraimee Hughes
Email: email@hidden
Cell: 954.854.3155

_______________________________________________
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


References: 
 >Dock Application Click (From: "A.Sleep" <email@hidden>)
 >Re: Dock Application Click (From: "A.Sleep" <email@hidden>)

  • Prev by Date: Re: loop efficiency & messages
  • Next by Date: KVC/bindings/coredata WAS loop efficiency & messages
  • Previous by thread: Re: Dock Application Click
  • Next by thread: Re: Dock Application Click
  • Index(es):
    • Date
    • Thread