• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Main Thread UI and Detached Thread
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: Main Thread UI and Detached Thread
      • From: Mike <email@hidden>
References: 
 >Main Thread UI and Detached Thread (From: Mike <email@hidden>)
 >Re: Main Thread UI and Detached Thread (From: j o a r <email@hidden>)
 >Re: Main Thread UI and Detached Thread (From: Mike <email@hidden>)

  • Prev by Date: RE: Main Thread UI and Detached Thread
  • Next by Date: Re: Question on bitmap fonts
  • Previous by thread: Re: Main Thread UI and Detached Thread
  • Next by thread: Re: Main Thread UI and Detached Thread
  • Index(es):
    • Date
    • Thread