• 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: Processing mouse clicks using Quartz events
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Processing mouse clicks using Quartz events


  • Subject: Re: Processing mouse clicks using Quartz events
  • From: Kyle Sluder <email@hidden>
  • Date: Wed, 16 Feb 2011 00:15:39 -0800

On Feb 15, 2011, at 11:23 PM, Tomáš Znamenáček<email@hidden> wrote:

> I have a system utility application that needs to be triggered by a mouse click on certain UI elements. In all applications, not just mine. When the application notices the right kind of a mouse click, I want to “steal” the event to prevent it from being processed by the system and do something of my own.
>
> I looked into NSEvent global monitoring, but that does not allow me to modify the events. Is there another way to monitor and change the system mouse events?

Sounds like you want a Quartz event tap filter. You can create one using CGEventTapCreate. Though I'm kind of curious how you're able to determine the user is clicking on something interesting in arbitrary applications, and what that interesting thing may be.

--Kyle Sluder_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

References: 
 >Processing mouse clicks using Quartz events (From: Tomáš Znamenáček <email@hidden>)
 >Re: Processing mouse clicks using Quartz events (From: Graham Cox <email@hidden>)
 >Re: Processing mouse clicks using Quartz events (From: Tomáš Znamenáček <email@hidden>)

  • Prev by Date: Re: Processing mouse clicks using Quartz events
  • Next by Date: Re: rewriting observed keyPath
  • Previous by thread: Re: Processing mouse clicks using Quartz events
  • Next by thread: Re: Processing mouse clicks using Quartz events
  • Index(es):
    • Date
    • Thread