Re: Using NSApplescript while keeping UI responsive
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.