Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!samsung!dali.cs.montana.edu!uakari.primate.wisc.edu!zaphod.mps.ohio-state.edu!wuarchive!emory!hubcap!ncrcae!opusc!jwwalker From: jwwalker@opusc.csd.scarolina.edu (Jim Walker) Newsgroups: comp.sys.mac.programmer Subject: How can a trap patch find a DA's name? Message-ID: <1990Oct23.013130.7242@opusc.csd.scarolina.edu> Date: 23 Oct 90 01:31:30 GMT References: <11285@hacgate.UUCP> Distribution: na Organization: Univ. of South Carolina, Columbia, Dept. of Math. Lines: 8 Suppose a trap patch wants to know who called it. It can check CurApName (or is there a gotcha to that?), and if it is DA Handler, then a DA called it. I thought I could just look at the windowKind field of the front window and use the device control list to look up the driver. But that doesn't work with Suitcase II, because its window is of the dialogKind. -- -- Jim Walker 76367.2271@compuserve.com