Re: Dock Application Click
Re: Dock Application Click
- Subject: Re: Dock Application Click
- From: Hamish Allan <email@hidden>
- Date: Wed, 23 Mar 2005 12:06:01 +0000
One difference is that clicking the dock icon will try to create a new
window or maximise an existing one. See the documentation for
-[NSApplication applicationShouldHandleReopen:hasVisibleWindows:]
http://developer.apple.com/documentation/Cocoa/Reference/
ApplicationKit/ObjC_classic/Classes/NSApplication.html#//apple_ref/doc/
uid/20000012/BAJHFEIH
Best wishes,
Hamish
On Date: Wed, 23 Mar 2005 01:25:11 -0600, Charilaos Skiadas
<email@hidden> wrote;
Just curious, why do you want to differentiate between the various ways
one would activate your app? As a user, I've always consider
control-tabbing to be the same as clicking the dock icon.
Haris
On Mar 23, 2005, at 12:56 AM, Dave DeLong wrote:
I'm not *entirely* sure how well this would translate into Cocoa, but
when the dock icon is clicked, the application is sent an apple event
of class "aevt" and id "rapp".
I'd be interested in learning how received appleEvents can be
handled.... =)
HTH!
Dave DeLong
On Mar 22, 2005, at 11:11 PM, 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).
Any pointers would be great.
_______________________________________________
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