Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!ucbvax!hoptoad!tim From: tim@hoptoad.uucp (Tim Maroney) Newsgroups: comp.sys.mac.programmer Subject: Re: Multiple window DA Message-ID: <6450@hoptoad.uucp> Date: 4 Feb 89 20:09:51 GMT References: <1989Feb2.142610.24884@LTH.Se> Reply-To: tim@hoptoad.UUCP (Tim Maroney) Organization: Eclectic Software, San Francisco Lines: 30 In article <1989Feb2.142610.24884@LTH.Se> joakim_b@tts.lth.se (Joakim Bengtson) writes: >I'm working on a multiwindow DA. How can multiple windows be handled >in a DA in such a way InterMail does? > >According to IM I-141: > >If the mouse button was pressed in the go-away region, SystemClick >calls TrackGoAway to determine whether the mouse is still inside the >go-away region when the click is completed: If so, it tells the DA >TO CLOSE ITSELF; > >In other words, if I close ONE of the opened windows the DA closes. It *tells* you to close, but you can tell it to sod off. You do this by returning closeErr in response to the close message. This will leave you opened. >I'm working with LSC 3.01 and the "DA stuff" allowing me to use the >debugger during development. Doesn't work for me. I spent two weeks converting an application to a DA this way, and it worked perfectly in the fake debugger mode. It never could be made to work as a multi-segment DA, however. Be very careful. I debug my DAs using MacsBug, and make them as DAs. -- Tim Maroney, Consultant, Eclectic Software, sun!hoptoad!tim "I see little divinity about them or you. You talk to me of Christianity when you are in the act of hanging your enemies. Was there ever such blasphemous nonsense!" - Shaw, "The Devil's Disciple"