Re: Detecting a user click while in a lengthy task (mainthread)
Re: Detecting a user click while in a lengthy task (mainthread)
- Subject: Re: Detecting a user click while in a lengthy task (mainthread)
- From: Shawn Erickson <email@hidden>
- Date: Fri, 13 Jan 2006 07:37:52 -0800
On Jan 13, 2006, at 1:28 AM, Aurélien Hugelé wrote:
PS : i know i should thread this, but it is much too complex for
the moment...
Unless you can easily split your task into chunks so you can yield
time periodically to process events you should just throw things off
into a secondary thread. It really isn't complex to do that...
depending on how you go about it and your requirements (a few lines
of code in the simplest case). Often trying to break your task up
into chunks is harder then just threading it.
-Shawn _______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden