FROM : Bill Cheeseman
DATE : Tue Apr 22 21:19:02 2008
on 2008-04-22 2:31 PM, Steve Cronin at <email_removed> wrote:
> NO threading involved here.
> Just straight up Cocoa code...
Bear in mind that running a script via NSAppleScript (or the corresponding
method in OSAKit) on a machine that has Unsanity's Application Enhancer
(APE) installed automatically causes the script to be run in a secondary
thread. At least, this was true a couple of years ago when I first
encountered the problem.
I ran into this problem with APE in one of my own applications that uses
NSAppleScript to run a script. I worked closely with Unsanity at that time
to figure out how to deal with the problem. As a result, I now always force
my scripts to run on the main thread by calling -performOnMainThread (I
forget exactly what the method is called). This seems to work around the
problem on machines that have APE installed.
Unfortunately, it is difficult to support customers/users running APE. Folks
with haxies installed rarely know that they should mention it when they
submit problem reports. I've gotten in the habit of asking that question up
front in response to almost all support calls.
--
Bill Cheeseman - <email_removed>
Quechee Software, Quechee, Vermont, USA
www.quecheesoftware.com
PreFab Software - www.prefabsoftware.com
DATE : Tue Apr 22 21:19:02 2008
on 2008-04-22 2:31 PM, Steve Cronin at <email_removed> wrote:
> NO threading involved here.
> Just straight up Cocoa code...
Bear in mind that running a script via NSAppleScript (or the corresponding
method in OSAKit) on a machine that has Unsanity's Application Enhancer
(APE) installed automatically causes the script to be run in a secondary
thread. At least, this was true a couple of years ago when I first
encountered the problem.
I ran into this problem with APE in one of my own applications that uses
NSAppleScript to run a script. I worked closely with Unsanity at that time
to figure out how to deal with the problem. As a result, I now always force
my scripts to run on the main thread by calling -performOnMainThread (I
forget exactly what the method is called). This seems to work around the
problem on machines that have APE installed.
Unfortunately, it is difficult to support customers/users running APE. Folks
with haxies installed rarely know that they should mention it when they
submit problem reports. I've gotten in the habit of asking that question up
front in response to almost all support calls.
--
Bill Cheeseman - <email_removed>
Quechee Software, Quechee, Vermont, USA
www.quecheesoftware.com
PreFab Software - www.prefabsoftware.com
| Related mails | Author | Date |
|---|---|---|
| Steve Cronin | Apr 22, 19:47 | |
| Nick Zitzmann | Apr 22, 20:10 | |
| Steve Cronin | Apr 22, 20:31 | |
| Michael Watson | Apr 22, 20:31 | |
| Michael Watson | Apr 22, 21:01 | |
| Bill Cheeseman | Apr 22, 21:19 | |
| Mark Piccirelli | Apr 22, 21:53 | |
| Michael Watson | Apr 22, 22:01 | |
| Mark Piccirelli | Apr 22, 22:16 | |
| Steve Cronin | Apr 22, 22:17 |






Cocoa mail archive

