• 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: best way to refuse events?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: best way to refuse events?


  • Subject: Re: best way to refuse events?
  • From: Lance Bland <email@hidden>
  • Date: Sat, 17 Aug 2002 01:05:56 -0400

On Saturday, August 17, 2002, at 12:43 AM, Timothy J. Wood wrote:

On Friday, August 16, 2002, at 07:17 PM, Matt Neuburg wrote:
Because I don't want to. I want to do what I said I want to do - when I get
to the end of the process I want to throw away all pending events.
Basically I'm simply looking for the Cocoa equivalent of FlushEvents().
What is it? Thx - m.


NSDate *distantPast = [NSDate distantPast];
NSEvent *event;

while ((event = [NSSApp nextEventMatchingMask:NSAnyEventMask
untilDate:distantPast
inMode:NSDefaultRunLoopMode
dequeue:YES])) {
// do nothing with the event
}

sorry, but I haven't been reading this thread...but what about...

-[NSApplication discardEventsMatchingMask:beforeEvent:currentEvent];

It is documented, but doesn't seem to work right, at least it gives a error to the console when we use it in one section...

We have workarounds, but I'm hoping Jaguar fixes it so I can use it again.

------------------------------------
Lance Bland
mailto:email@hidden
web charts at http://www.vvi.com/products/chart
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.

  • Follow-Ups:
    • Re: best way to refuse events?
      • From: "Timothy J. Wood" <email@hidden>
References: 
 >Re: best way to refuse events? (From: "Timothy J. Wood" <email@hidden>)

  • Prev by Date: Re: best way to refuse events?
  • Next by Date: Re: adding pages to a generated pdf
  • Previous by thread: Re: best way to refuse events?
  • Next by thread: Re: best way to refuse events?
  • Index(es):
    • Date
    • Thread