• 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: Threading changes in yosemite
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Threading changes in yosemite


  • Subject: Re: Threading changes in yosemite
  • From: Shane Stanley <email@hidden>
  • Date: Sun, 19 Oct 2014 07:42:33 +1100

On 19 Oct 2014, at 2:53 am, John C. Welch <email@hidden> wrote:

Does that mean ASOC applications now can have real threading

No. It means that if you're using it in vanilla AS (as opposed to in an Xcode-built project), you need to be careful when using methods that require the main thread, because script editors normally run scripts on a background thread. Script Editor lets you run on the main thread: you need to hold the control key, and Run becomes Run in Foreground. And of course ASObjC Explorer has a similar switch.

You can force stuff onto different threads, but you are still effectively running everything on a single instance of AppleScript, so the result is generally less than satisfactory.

-- 
Shane Stanley <email@hidden>
<www.macosxautomation.com/applescript/apps/>

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
applescriptobjc-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

References: 
 >Threading changes in yosemite (From: "John C. Welch" <email@hidden>)

  • Prev by Date: Threading changes in yosemite
  • Next by Date: how can I get 'Printer is accepting jobs' property, please?
  • Previous by thread: Threading changes in yosemite
  • Next by thread: how can I get 'Printer is accepting jobs' property, please?
  • Index(es):
    • Date
    • Thread