Re: unable to break out of runloop because timers are fired and then the loop waits
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