Re: Dock Application Click
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