From: Mats B. <ma...@pr...> - 2002-01-06 15:06:44
|
Jim Ingham wrote: > > You can cross build with MetroWerks, as well. Just set up a target in your > project that builds a X binary, and it will do so. The easiest way to > figure out the settings, probably, is to make a new project with both a 9 & > X target, and swipe the settings for the X target from that. You will have > to make the X target Mach-O rather than CFM (which CW Pro 7 can do), or you > will have to go through a lot of unnecessary work to get it to load into > Tk... > Do I need to make it a Mach-O, in that case I'm stuck since I'm running CW Pro 6.2. I'll better get myself a sponsor for a X machine :-) > If you can get something that builds and runs in Carbon on Classic MacOS, I > would be happy to try it out on X. We need to talk about how to give both > you and the Python folks better access to the event loop anyway. My first > choice would be that any window that I don't know about, I will just send > the event to the default Carbon Event handler for the Window, and you can > then register for that handler... Don't know how this will work on Classic > Tk however, since it really hasn't been build for Carbon on Classic Mac OS > X. > In Win32 I just get a hook to the WinProc for the (tk) movie (sub) window, and call the default WinProc right after. But the mac still considers the toplevels as the windows, and doesn't have subwindows. The "classic" QuickTimeTcl gets a hook on the complete apps event loop. In case I need to register an Carbon event handler for each toplevel window that has a movie mapped, I somehow need to know each movies toplevel, which may complicate things, or maybe not? (This was rather confusing, wasn't it :-) ) Also, movies need to be served with events even if they are not mapped to a window since they may do network operations, if an -url option is used, for instance. But this may be done with a Carbon timer that sends (null ?) events to each movie regularly. Apple hasn't specified this point clearly, as far as I have found. In any case I need a Carbon timer for each movie due to the different event model on X. As said above, I'll continue this stuff when I've got an X machine... Mats |