• 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: 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.

  • Follow-Ups:
    • Re: best way to refuse events?
      • From: "Timothy J. Wood" <email@hidden>
  • Prev by Date: Re: NSTextViews with images (solution)
  • Next by Date: Set the bold style in an attributedstring
  • Previous by thread: Re: best way to refuse events?
  • Next by thread: Re: best way to refuse events?
  • Index(es):
    • Date
    • Thread