• 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: Quincey Morris <email@hidden>
  • Date: Sat, 20 Aug 2016 14:39:58 -0700
  • Feedback-id: 167118m:167118agrif8a:167118s9XDz3Cjra:SMTPCORP

On Aug 20, 2016, at 14:26 , Andreas Falkenhahn <email@hidden> wrote:
>
> such a trivial thing as polling the number of events in the queue

It seems to me quite possible that there might be events that don’t appear in the queue until you ask for an event.  That is, a data source of some kind might have triggered, but it’s not checked (and turned into an event) until you ask. This might be a reasonable optimization in a mature OS, and it might be a reason why there’s no “number of events in the queue” API, and why polling is neither trivial nor encouraged.

_______________________________________________

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


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>)
 >Re: GetNumEventsInQueue() for Cocoa (From: Andreas Falkenhahn <email@hidden>)
 >Re: GetNumEventsInQueue() for Cocoa (From: Quincey Morris <email@hidden>)
 >Re: GetNumEventsInQueue() for Cocoa (From: Andreas Falkenhahn <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