• 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: GetNumEventsInQueue() for Cocoa
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: GetNumEventsInQueue() for Cocoa


  • Subject: Re: GetNumEventsInQueue() for Cocoa
  • From: Andreas Falkenhahn <email@hidden>
  • Date: Sat, 20 Aug 2016 22:22:53 +0200

On 20.08.2016 at 22:01 Quincey Morris wrote:

> On Aug 20, 2016, at 10:59 , Andreas Falkenhahn <email@hidden> wrote:
>
> If so, one alternative is to back-load your “thinning” of
> handleEvents() rather than front-loading it. That is, use an algorithm like this:

Actually, this is pretty much what I'm doing right now and what I meant by
saying that I use a timer that doesn't poll for events more than 100 times
a second.

> Note that this introduces an average/expected delay of 0.005 secs
> before handling an event after the event queue went idle

...and this is exactly what I wanted to avoid by looking for an equivalent of
GetNumEventsInQueue(). But apparently, there doesn't seem to be one. That's
no big deal for me, since I can live with that tiny delay which doesn't
seem to be noticable anyway. I was just wondering whether Cocoa had an
equivalent for GetNumEventsInQueue(). If that isn't the case, then I can
live with what I have here.

--
Best regards,
 Andreas Falkenhahn                            mailto:email@hidden


_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden


  • Follow-Ups:
    • Re: GetNumEventsInQueue() for Cocoa
      • From: Quincey Morris <email@hidden>
References: 
 >GetNumEventsInQueue() for Cocoa (From: Andreas Falkenhahn <email@hidden>)
 >Re: GetNumEventsInQueue() for Cocoa (From: David Duncan <email@hidden>)
 >Re: GetNumEventsInQueue() for Cocoa (From: Andreas Falkenhahn <email@hidden>)
 >Re: GetNumEventsInQueue() for Cocoa (From: Quincey Morris <email@hidden>)

  • Prev by Date: Re: GetNumEventsInQueue() for Cocoa
  • Next by Date: Re: GetNumEventsInQueue() for Cocoa
  • Previous by thread: Re: GetNumEventsInQueue() for Cocoa
  • Next by thread: Re: GetNumEventsInQueue() for Cocoa
  • Index(es):
    • Date
    • Thread