From: Jon G. <jg...@hi...> - 2002-03-06 00:19:48
|
At 2:21 PM -0800 3/5/02, Jim Ingham wrote: >First, why won't it load into Aqua Wish? What errors do you get? Being ignorant about such things, I copied tclAE2.0 into /System/Library/Frameworks/Tcl.framework/Versions/8.4/Resources, which is the equivalent auto_path entry to where it's installed for tclsh. () 1 % package names http registry dde tclAE tcltest opt msgcat Tk Tcl () 2 % package require tclAE Wish goes boom "The application Wish Shell has unexpectedly quit..." dyld: /Applications/Wish Shell.app/Contents/MacOS/Wish Shell Undefined symbols: _Tclae_SafeInit I'll grant, there is no such routine. Does there need to be? TclAE is most decidedly /not/ safe. >Second, it is very odd that it receives the event, since there isn't >an event loop that is listening to Apple events. I don't really >know how Apple Events are delivered in X. I'll ask around... AppleEvents are delivered to AE handlers asynchronously. No event loop needed. >Third, you have to have an App Signature registered with whoever is >sending events between Apps (probably the Window Server). Actually, what's needed is an AEAddressDesc, which is one of: typeApplSignature, typeSessionID, typeTargetID, or typeProcessSerialNumber. Can we get any of these for Tcl (tclsh)? tclsh has a eunuchs PID; can this be translated to a ToolBox PSN? >I wouldn't want >to do this by default in Tcl, since that involves linking with alot >of the ApplicationServices stack, and this sometimes means you >connect to the Window Server on launch, which would be bad. Understood. I agree that Tcl should be as "normal" a eunuchs implementation as possible. -- Jonathan E. Guyer <http://www.his.com/jguyer/> |