• 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: Tomáš Znamenáček <email@hidden>
  • Date: Wed, 16 Feb 2011 09:46:39 +0100

Kyle Sluder wrote:

> Sounds like you want a Quartz event tap filter. You can create one using CGEventTapCreate.

That’s exactly what I am doing, but as I wrote, I found it hard to filter a whole mouse click event, since the tap filter only receives the low-level event types. When I receive a mouse down event, I have to wait for the corresponding mouse up event to see if the mouse is being dragged (which I do not want to filter) or simply clicked (which I do want to filter). And I’d hate to delay all mouse down events in the system just because of this.

> 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.

I’m playing with the accessibility API. (Sorry for sounding so mysterious, I was trying to keep the question general.) Right now I am trying to detect a mouse click on a window title. The code works, but I have hard time differentiating between the click and a drag.

T.
_______________________________________________

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>)
 >Re: Processing mouse clicks using Quartz events (From: Kyle Sluder <email@hidden>)

  • Prev by Date: Re: Key equivalents for non-menu items
  • Next by Date: Re: Contextual menu commands in the Finder
  • Previous by thread: Re: Processing mouse clicks using Quartz events
  • Next by thread: Binding to an NSMutableArray
  • Index(es):
    • Date
    • Thread