Re: NSRunLoop issue
Re: NSRunLoop issue
- Subject: Re: NSRunLoop issue
- From: Andreas Grosam <email@hidden>
- Date: Fri, 18 Sep 2009 12:13:17 +0200
On Sep 17, 2009, at 7:01 PM, Jean-Daniel Dupas wrote:
Le 17 sept. 2009 à 18:28, Jerry Krinock a écrit :
On 2009 Sep 17, at 07:48, Jean-Daniel Dupas wrote:
Add a dummy source (mach port or timer with an insanely high fire
date) before running your loop. So you re sure there is at least
one source.
Please show a few lines of code adding a "dummy" mach port. One
time I tried to do that and kept going around in circles in the
documentation.
[[NSRunLoop currentRunLoop] addPort:[NSMachPort port]
forMode:NSDefaultRunLoopMode];
Thank you Jean-Daniel for the tip.
I'm using a dummy timer currently - but the mach port approach looks
better.
Thanks!
Jerry Krinock
-- Jean-Daniel
Regards
Andreas
_______________________________________________
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