• 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: NSAppleScript with threading
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSAppleScript with threading


  • Subject: Re: NSAppleScript with threading
  • From: Michael Hall <email@hidden>
  • Date: Mon, 9 May 2005 06:00:17 -0700 (PDT)
  • Comment: DomainKeys? See http://antispam.yahoo.com/domainkeys

--- Thomas Clement <email@hidden> wrote:

> Hello,
>
> I read from the NSAppleScript documentation :
> Important:  You should access NSAppleScript only
> from the main thread.
>
> So how can I execute AppleScript scripts using
> NSAppleScript keeping
> my GUI responsive to user interactions ??

My understanding may be off here, I'm asking, but
running code on the main thread doesn't necessarily
mean your application is unresponsive or is suddenly
incapable of multi-tasking does it?
Possibly depending on the extent the applescript hogs
the thread, but isn't the event thread always time
sliced based on arriving events anyhow? Doesn't the
NSRunLoop stuff schedule your code to run on the
thread when available so it doesn't conflict. So that
you get the thread when available and release it for
normal event handling when your script completes?

Mike Hall
http://www.spacestar.net/users/mikehall



Yahoo! Mail
Stay connected, organized, and protected. Take the tour:
http://tour.mail.yahoo.com/mailtour.html

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

This email sent to email@hidden

References: 
 >NSAppleScript with threading (From: Thomas Clement <email@hidden>)

  • Prev by Date: Re:prompt display
  • Next by Date: Re:Include external jar
  • Previous by thread: Re: NSAppleScript with threading
  • Next by thread: CoreData 3 questions
  • Index(es):
    • Date
    • Thread