• 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
mouseMoved when inactive?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

mouseMoved when inactive?


  • Subject: mouseMoved when inactive?
  • From: "A. Blue" <email@hidden>
  • Date: Mon, 14 Nov 2005 21:28:17 -0800

Working on a panel window that hovers in the corner of the macintosh
display.  I am using setAcceptsMouseMovedEvents on the NSWindow and
receiving mouseMoved events properly.

However when the application is inactive, I do not receive mouse moved events.

Is there any way to receive mouseMoved events in an inactive
application?  I do not see this in the CGDirectDisplay API.

I can receive mouseEntered and mouseExited using tracking rectangles.
However the only way I can think of to get mouseMoved is to make the
application window active on a mouseEntered event.  This is not good
since it is not clear how to activate the previous application on the
mouseExited event.  And even if it is possible, there would be the
visible blip of that application being rapidly de-activated.

Is my only hope to write a device driver that keeps track of the mouse pointer?
 _______________________________________________
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

  • Prev by Date: DC Metro area User Group?
  • Next by Date: Re: Maximum file name length?
  • Previous by thread: Re: DC Metro area User Group?
  • Next by thread: CGImage functions
  • Index(es):
    • Date
    • Thread