Re: NSAppleScript with threading
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