GetNumEventsInQueue() for Cocoa
GetNumEventsInQueue() for Cocoa
- Subject: GetNumEventsInQueue() for Cocoa
- From: Andreas Falkenhahn <email@hidden>
- Date: Sat, 20 Aug 2016 19:30:08 +0200
Is there a Cocoa equivalent for the Carbon call
GetNumEventsInQueue(GetMainEventQueue())?
I use this a lot to poll whether there are events in the queue.
I tried to use
[NSApp nextEventMatchingMask:NSAnyEventMask untilDate:nil inMode:NSDefaultRunLoopMode dequeue:NO]
as a replacement but this is very, very slow in comparison to Carbon's
GetNumEventsInQueue() API. I need something much faster. Any ideas?
--
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