on 2008-04-22 2:31 PM, Steve Cronin at [EMAIL PROTECTED] 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 PROTECTED]
Quechee Software, Quechee, Vermont, USA
www.quecheesoftware.com

PreFab Software - www.prefabsoftware.com


_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please 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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]

Reply via email to