• 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: "Timothy J. Wood" <email@hidden>
  • Date: Fri, 16 Aug 2002 23:25:21 -0700

On Friday, August 16, 2002, at 10:05 PM, Lance Bland wrote:
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.

As far as I see from the documentation, this requires you to pass in a terminating event instead of a terminating time. You can't pass the current event since nothing will end up getting discarded (-currentEvent returns the last event returned by -nextEventMatchingMask:...).

-tim
_______________________________________________
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.

References: 
 >Re: best way to refuse events? (From: Lance Bland <email@hidden>)

  • Prev by Date: Re: best way to refuse events?
  • Next by Date: Re: File's Owner
  • Previous by thread: Re: best way to refuse events?
  • Next by thread: Re: best way to refuse events?
  • Index(es):
    • Date
    • Thread