• 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: What does "access" mean for NSAppleScript?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: What does "access" mean for NSAppleScript?
      • From: "Paul J. Lucas" <email@hidden>
References: 
 >What does "access" mean for NSAppleScript? (From: "Paul J. Lucas" <email@hidden>)

  • Prev by Date: What does "access" mean for NSAppleScript?
  • Next by Date: Re: NSObjectController and Core Data
  • Previous by thread: What does "access" mean for NSAppleScript?
  • Next by thread: Re: What does "access" mean for NSAppleScript?
  • Index(es):
    • Date
    • Thread