Path: utzoo!attcan!uunet!mcsun!unido!mp From: mp@unido.UUCP (Michael Pickers) Newsgroups: comp.sys.mac.programmer Subject: Re: MacApp and Communications Toolbox Summary: Cohandlers for CTB in MacApp Keywords: MacApp, CTB Message-ID: <2138@unido.UUCP> Date: 14 Aug 90 16:28:16 GMT References: <1990Aug9.213215.1892@efi.com> Reply-To: mp@unido.UUCP (Michael Pickers) Followup-To: comp.sys.mac.programmer Organization: The German Eunet Backbone, University of Dortmund Lines: 32 In article <1990Aug9.213215.1892@efi.com> tim@efi.com (Tim Maroney) writes: >The subject line says it all. Anyone come up with any MacApp documents >that use Comm. Toolbox? Yes, I'm working on one, and it's running, just not finished. >Can it be done without modifying MacApp or >copying hundreds of lines from the TApplication methods to make a >subclass of TApplication? You don't need to modify the MacApp Sources, but you have to override a couple methods, but not too many. I don't know them out of my head. The basic idea I'm using are cohanders. You should look into the TEvtHandler implementation to learn more about it. (a cohander is a subclass of TEvtHandler) Another source to give you some ideas is to look into the very old AppleTalk Demo Application that was shipped with MacApp 1.1. Don't use any of the AppleTalk stuff in there, since it is completely outdated, but the theory of operation is interesting. But on the whole, I would love to have the CTB supported in some way in MacApp since I'm not really sure about everything I've done. Michael Pickers Computer Science Department, University of Dortmund IRB - Informatik Rechner Betriebsgruppe 4600 Dortmund 50, P.O. Box 500500, W.-Germany E-mail address UUCP: mp@unido.uucp (...uunet!mcsun!unido!mp) Internet: mp@unido.informatik.uni-dortmund.de BITNET: mp@unido.bitnet