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 (Cocoa-dev@lists.apple.com)

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to