• 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: Dave DeLong <email@hidden>
  • Date: Tue, 22 Mar 2005 23:56:05 -0700

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
  • Follow-Ups:
    • Re: Dock Application Click
      • From: Peter Maurer <email@hidden>
    • Re: Dock Application Click
      • From: Charilaos Skiadas <email@hidden>
References: 
 >Dock Application Click (From: "A.Sleep" <email@hidden>)

  • Prev by Date: Re: Dock Application Click
  • Next by Date: Re: Dock Application Click
  • Previous by thread: Re: Dock Application Click
  • Next by thread: Re: Dock Application Click
  • Index(es):
    • Date
    • Thread