• 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: How to update UI from a background thread
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How to update UI from a background thread


  • Subject: Re: How to update UI from a background thread
  • From: Jens Alfke <email@hidden>
  • Date: Thu, 22 Sep 2016 08:42:56 -0700

> On Sep 22, 2016, at 5:20 AM, Dave <email@hidden> wrote:
>
> So I’m wondering if it is something to do with the AppleScript handling?

AFAIK, AppleScripts can only be run on the main thread. But it’s been many OS releases since I worked with them.  Even if it’s legal to run them from a background thread now, they might be doing something like dispatching the actual execution to the main thread? (I’m just speculating.)

Anyway, if the main thread is unresponsive, then drop into the debugger and look at its stack to see what it’s blocked in. Experiment.

—Jens

_______________________________________________

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: How to update UI from a background thread
      • From: Shane Stanley <email@hidden>
    • Re: How to update UI from a background thread
      • From: Dave <email@hidden>
References: 
 >How to update UI from a background thread (From: Dave <email@hidden>)
 >Re: How to update UI from a background thread (From: Sandor Szatmari <email@hidden>)
 >Re: How to update UI from a background thread (From: Dave <email@hidden>)
 >Re: How to update UI from a background thread (From: Dave <email@hidden>)

  • Prev by Date: Re: Normalising file names on macOS
  • Next by Date: Re: How to update UI from a background thread
  • Previous by thread: Re: How to update UI from a background thread
  • Next by thread: Re: How to update UI from a background thread
  • Index(es):
    • Date
    • Thread