• 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
Flushing events
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Flushing events


  • Subject: Flushing events
  • From: Ricky Sharp <email@hidden>
  • Date: Wed, 2 Nov 2005 19:02:58 -0600

I have a need to flush all events before entering a local event loop. I've search for a 'flushEvents' API, but can't come up with any. The article at <http://www.cocoadev.com/index.pl? FlushAppEventQueue> didn't help much either.


I've seen discardEventsMatchingMask:beforeEvent:, but what I really need is a discardEventsMatchingMask:afterEvent:


Before I enter the local loop, I've thought of capturing the current timestamp and "eating" events that occurred before that time via the nextEventMatchingMask APIs.

Is there a better way?

___________________________________________________________
Ricky A. Sharp         mailto:email@hidden
Instant Interactive(tm)   http://www.instantinteractive.com

_______________________________________________
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


  • Follow-Ups:
    • Re: Flushing events
      • From: Ricky Sharp <email@hidden>
  • Prev by Date: Re: Subclassing NSSearchFieldCell
  • Next by Date: QTMovie initWithFile
  • Previous by thread: Re: NSOpenPanel and showing file name's
  • Next by thread: Re: Flushing events
  • Index(es):
    • Date
    • Thread