• 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: Ken Thomases <email@hidden>
  • Date: Wed, 5 Aug 2009 04:24:57 -0500

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: Sandro Noel <email@hidden>
References: 
 >Main Event queue (From: Sandro Noel <email@hidden>)

  • Prev by Date: Re: Tell which type is in NSValue?
  • Next by Date: Generating random numbers
  • Previous by thread: Re: Main Event queue
  • Next by thread: Re: Main Event queue
  • Index(es):
    • Date
    • Thread