Path: utzoo!censor!geac!torsqnt!news-server.csri.toronto.edu!cs.utexas.edu!swrinde!zaphod.mps.ohio-state.edu!uwm.edu!psuvax1!psuvm!dn5 From: DN5@psuvm.psu.edu Newsgroups: comp.sys.mac.programmer Subject: MacApp help needed (closing a window) Message-ID: <90099.091150DN5@psuvm.psu.edu> Date: 9 Apr 90 13:11:50 GMT Organization: Penn State University Lines: 13 Hi: I need to be able to close a MacApp window from a button placed within that window. I have tried using the .Close method, but the system crashed on me. My current way of doing this is to have a global variable which is normally NIL, but if non-NIL contains a window (gWindowToClose), and whenever my application sees that this is non-NIL, closes the window. I think that there should be an easier way of doing this. Perhaps the PostEvent solution mentioned in an earlier message? D. Jay Newman dn5@psuvm.psu.edu