Re: GetNumEventsInQueue() for Cocoa
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