• 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: unable to break out of runloop because timers are fired and then the loop waits
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: unable to break out of runloop because timers are fired and then the loop waits


  • Subject: Re: unable to break out of runloop because timers are fired and then the loop waits
  • From: Dave Dribin <email@hidden>
  • Date: Wed, 24 Sep 2008 15:42:03 -0500

On Sep 24, 2008, at 3:35 PM, Jason Bobier wrote:
Thanks Nick. I'm trying to avoid polling tho (since that is the whole point of runloops and mach ports).

Take a look a message I posted a few days ago that uses a Mach port to wake up the run loop:


  <http://lists.apple.com/archives/Cocoa-dev/2008/Sep/msg01155.html>

I never got any replies, but it's working well for me. What you'd do is install a DDRunLoopPoker and then call -pokeRunLoop in your timer callback. That'll force
runMode:beforeDate: to return.


-Dave

_______________________________________________

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: 
 >unable to break out of runloop because timers are fired and then the loop waits (From: Jason Bobier <email@hidden>)
 >Re: unable to break out of runloop because timers are fired and then the loop waits (From: Nick Zitzmann <email@hidden>)
 >Re: unable to break out of runloop because timers are fired and then the loop waits (From: Jason Bobier <email@hidden>)

  • Prev by Date: Re: unable to break out of runloop because timers are fired and then the loop waits
  • Next by Date: Re: Unable to launch about panel for the 2nd time
  • Previous by thread: Re: unable to break out of runloop because timers are fired and then the loop waits
  • Next by thread: Re: unable to break out of runloop because timers are fired and then the loop waits
  • Index(es):
    • Date
    • Thread