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

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


  • Follow-Ups:
    • Re: GetNumEventsInQueue() for Cocoa
      • From: David Duncan <email@hidden>
  • Prev by Date: Re: array = [NSArray new] or array = [NSArray array]?
  • Next by Date: Re: GetNumEventsInQueue() for Cocoa
  • Previous by thread: Re: odd drawInsertionPointInRect behavior
  • Next by thread: Re: GetNumEventsInQueue() for Cocoa
  • Index(es):
    • Date
    • Thread