• 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: Using NSApplescript while keeping UI responsive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Using NSApplescript while keeping UI responsive


  • Subject: Re: Using NSApplescript while keeping UI responsive
  • From: Andrew Thompson <email@hidden>
  • Date: Wed, 28 Jul 2004 08:20:41 -0400

On Jul 28, 2004, at 3:38 AM, Andreas Mayer wrote:

Am 28.07.2004 um 06:04 Uhr schrieb Andrew Thompson:

Its not that its not thread safe, its that it has an absolute requirement that it only ever be called from the application's main thread.

Um... are you sure? I'm calling NSAppleScript from a separate thread regularly and it works quite well. I DO get the occasional crash (every few hours) though. You think that is related?

So do I always have to execute AppleScripts from the main thread? That'd be bad because AppleScript is quite slow ...


My apologies. I phrased what I said as a statement, when I meant really to put it as a question.
There are things in various libraries I'm aware of that have a strong requirement (not just thread safe, but demand a particular thread). From the discussion it appeared NSAppleScript was one of these, and I was actually looking for confirmation.


AndyT (lordpixel - the cat who walks through walls)
A little bigger on the inside

(see you later space cowboy ...)
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.


References: 
 >Using NSApplescript while keeping UI responsive (From: Edison Thomaz <email@hidden>)
 >Re: Using NSApplescript while keeping UI responsive (From: Nick Zitzmann <email@hidden>)
 >Re: Using NSApplescript while keeping UI responsive (From: Edison Thomaz <email@hidden>)
 >Re: Using NSApplescript while keeping UI responsive (From: email@hidden)
 >Re: Using NSApplescript while keeping UI responsive (From: Andrew Thompson <email@hidden>)
 >Re: Using NSApplescript while keeping UI responsive (From: Andreas Mayer <email@hidden>)

  • Prev by Date: Re: windowDidLoad
  • Next by Date: Noddy array controller / bindings question
  • Previous by thread: Re: Using NSApplescript while keeping UI responsive
  • Next by thread: Re: Using NSApplescript while keeping UI responsive
  • Index(es):
    • Date
    • Thread