Chris Idou ([EMAIL PROTECTED]) on 2008-12-03 10:44 PM said:

>I want to have a separate thread in my app which does time consuming
>things. I want to assign tasks to this thread using performSelector:onThread.
>
>Now you can't have a runloop with no input sources, or it exits
>immediately. So how do I start a thread with a runloop that does nothing
>except patiently wait for performSelector:onThread: calls?

Could you just add a timer to the runloop?  The timer could be periodic,
firing every 42 years.

Sean


_______________________________________________

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 [EMAIL PROTECTED]

Reply via email to