Re: best way to refuse events?
Re: best way to refuse events?
- Subject: Re: best way to refuse events?
- From: Matt Neuburg <email@hidden>
- Date: Sat, 17 Aug 2002 10:17:22 -0700
On Fri, 16 Aug 2002 23:22:04 -0700, "Timothy J. Wood" <email@hidden> said:
>
>
On Friday, August 16, 2002, at 09:58 PM, Matt Neuburg wrote:
>
>
> At 9:43 PM -0700 8/16/02, thus spake Timothy J. Wood:
>
>
>
>> NSDate *distantPast = [NSDate distantPast];
>
>> NSEvent *event;
>
>>
>
>> while ((event = [NSSApp nextEventMatchingMask:NSAnyEventMask
>
>> untilDate:distantPast
>
>> inMode:NSDefaultRunLoopMode
>
>> dequeue:YES])) {
>
>> // do nothing with the event
>
>> }
>
>
>
This means that if no event is pending, the method should return
>
immediately (since the date given is in the past). Thus, this will
>
loop discarding events until there are no more events to process.
That's great but it didn't work. :-( m.
--
matt neuburg, phd = email@hidden,
http://www.tidbits.com/matt
pantes anthropoi tou eidenai oregontai phusei
Subscribe to TidBITS! It's free and smart.
http://www.tidbits.com/
_______________________________________________
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.