Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!asuvax!stjhmc!p88.f15.n300.z1.fidonet.org!Lawson.English From: Lawson.English@p88.f15.n300.z1.fidonet.org (Lawson English) Newsgroups: comp.sys.mac.programmer Subject: Re: LClikLoop in a DA Message-ID: <34232.27875328@stjhmc.fidonet.org> Date: 6 Jan 91 16:25:53 GMT Sender: ufgate@stjhmc.fidonet.org (newsout1.26) Organization: FidoNet node 1:300/15.88 - Tucson Apple Core, Tucson AZ Lines: 26 Tim Maroney writes in a message to All TM> You have to cheat. There are a few standard ways to do this. TM> The most common is to write a little assembly language that uses TM> PC-relative addressing to manage a little block of storage (DC.L) TM> in code space. TM> Another way, probably worse, is to rely on the undocumented fact TM> that the List Manager passes the list handle to the click loop TM> routine in register a3 or a4 -- I don't recall which. Of course, TM> this could all change in the future. Another way (and better IMHO) is to reserve enough heap space for your DA globals, and put them into a record/struct whose handle is stored in dCtlStorage. Then, when you need 'em, you can simply lock dCtlStorage and typecast it to myRecordStructHandle. Lawson -- Uucp: ...{gatech,ames,rutgers}!ncar!asuvax!stjhmc!300!15.88!Lawson.English Internet: Lawson.English@p88.f15.n300.z1.fidonet.org