Re: best way to refuse events?
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.