From: Jim I. <ji...@ap...> - 2002-03-06 01:34:04
|
Jon, On Tuesday, March 5, 2002, at 05:21 PM, Jon Guyer wrote: > At 5:02 PM -0800 3/5/02, Jim Ingham wrote: > >> Yes, but if it is not safe, it is better to have a Tclae_SafeInit >> that returns TCL_ERROR. That is positively stating that you are not >> safe, rather than leaving it to someone to infer that you are. > > Ah, OK. We can do that. > >> This is not the way that it worked on 9, right. IIRC, you got a >> high level event in your event queue, which you had to service to >> get the event to be processed... > > Yep. Looks the same in X, too. I was just seeing a peculiarity of a > self-addressed event. The AEM directs those straight to the handler, > but everything else goes through the event loop, to be dispatched by > AEProcessAppleEvent(). > >> You can do a PID to PSN translation, there is an API for this in >> HIToolbox in Processes.h. But I bet that tclsh doesn't have a psn. >> It isn't registered with the WindowServer yet... > > Looks like this won't buy us anything even if it works... I guess Wish > (with Tcl rebuilt according to Daniel's instructions) is the way to go. In the long run, it would be really cool to get a Tcl that could respond to Apple Events. There isn't anything GUI-ish about Apple Events, they are just some kind of IPC, right? But for now, the easiest thing is just to use Daniel's fixes to the Tcl loading, and run it under Wish. Jim > -- > > Jonathan E. Guyer > <http://www.his.com/jguyer/> > > > _______________________________________________ > Tcl-mac mailing list > Tc...@li... > https://lists.sourceforge.net/lists/listinfo/tcl-mac > -- Jim Ingham ji...@ap... Developer Tools - gdb Apple Computer |