• 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: Main Event queue
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Main Event queue


  • Subject: Re: Main Event queue
  • From: Sandro Noel <email@hidden>
  • Date: Wed, 05 Aug 2009 10:50:21 -0400

Dave, Ken thank you very much for the information.

what I would like to do is broad range, get information about every action for every application in my current desktop session.

Window movement, hide, show, activate, deactivate, open, close, mouse movement, drag and drop operations, contextual menus pop-up.
I want to know everything.


Raw mouse movements, or mouse clicks are of little interest, so are keyboard events.
What i am interested in is the action happening after a mouse movement or click, or keyboard shortcuts, menu selections has happened.
anything that influences display of content on the desktop.



This subject is still in research mode for me so please excuse me if it seems like i don't know what I'm talking about
I'm trying to find out what can actually be done, so it's kind of hard to use the right terminology.


thank you very much for your help it's greatly appreciated.

Sandro Noël
email@hidden
Mac OS X : Swear by your computer, not at it.

P
-Pensez vert! avant d’imprimer ce courriel.
-Go Green! please consider the environment before printing this email.




On 5-Aug-09, at 5:24 AM, Ken Thomases wrote:

On Aug 4, 2009, at 7:10 PM, Sandro Noel wrote:

Is there a cocoa or carbon framework that would allow my software to hook onto the system main event queue, like in windows?
or to hook into the window manager.


I would like to peek at every message that traverse the main queue.

Do you mean just your own application's event queue or all on the system? Event taps are fine for either, but perhaps at too low a level or too broad a scope. If you only want to monitor the events of your own application, you might consider subclassing NSApplication and overriding -sendEvent:. That will be limited, however, to the main event loop. Modal event loops implemented around - nextEventMatchingMask:... methods don't necessarily pass events through -[NSApplication sendEvent:].


Regards,
Ken


_______________________________________________

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


  • Follow-Ups:
    • Re: Main Event queue
      • From: Ken Thomases <email@hidden>
References: 
 >Main Event queue (From: Sandro Noel <email@hidden>)
 >Re: Main Event queue (From: Ken Thomases <email@hidden>)

  • Prev by Date: Re: Generating random numbers
  • Next by Date: Re: Main Event queue
  • Previous by thread: Re: Main Event queue
  • Next by thread: Re: Main Event queue
  • Index(es):
    • Date
    • Thread