Re: What does "access" mean for NSAppleScript?
Re: What does "access" mean for NSAppleScript?
- Subject: Re: What does "access" mean for NSAppleScript?
- From: Michael Watson <email@hidden>
- Date: Fri, 23 Feb 2007 13:15:05 -0500
The syntax of the sentence:
"You should only access (class name) from the main thread."
Implies that you shouldn't use anything involving the class--methods
or objects--from outside of the main thread.
--
m-s
On 23 Feb, 2007, at 13:06, Paul J. Lucas wrote:
The documentation for NSAppleScript says:
You should access NSAppleScript only from the main thread.
But what does "access" mean? Does it mean that one should
*execute* scripts only from the main thread, or does it mean that
*all* NSAppleScript methods (including "init" methods) should be
called only from the main thread?
Ideally, I want to call initWithSource and compileAndReturnError
from an arbitrary thread but call executeAndReturnError from the
main thread.
- Paul
_______________________________________________
Cocoa-dev mailing list (email@hidden)
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:
40bungie.org
This email sent to email@hidden
_______________________________________________
Cocoa-dev mailing list (email@hidden)
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