Re: Main Thread UI and Detached Thread
Re: Main Thread UI and Detached Thread
- Subject: Re: Main Thread UI and Detached Thread
- From: j o a r <email@hidden>
- Date: Mon, 31 Mar 2008 11:11:04 -0700
On Mar 31, 2008, at 11:02 AM, Mike wrote:
I'm not doing any work on the main thread while the spawned thread
runs. In fact, the main thread is just idling doing nothing. And the
behavior isn't really a responsiveness issue: the rest of the UI
still responds fine, but my indicators that I update in the UI do
*nothing* the entire time the spawned thread is running. Nothing. No
activity. If I take the sleep calls out, then main thread updates
the UI instantly upon termination of the spawned thread.
You said that you're calling the main thread, so I expect it to do
*something*...
How do you notify the controls in the UI that they need to update to
reflect new values?
What is the total time required to run the task by your worker thread?
j o a r
_______________________________________________
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