Path: utzoo!utgpu!news-server.csri.toronto.edu!bonnie.concordia.ca!thunder.mcrcim.mcgill.edu!snorkelwacker.mit.edu!apple!well!gurgle@well.sf.ca.us From: gurgle@well.sf.ca.us (Pete Gontier) Newsgroups: comp.sys.mac.programmer Subject: What? No kiss goodbye? You tease! Message-ID: <22703@well.sf.ca.us> Date: 17 Jan 91 22:08:16 GMT Sender: gurgle@well.sf.ca.us Organization: cellular Lines: 38 Folks: I'm in the process of writing a few modules, among them "sDA" (DA Supervisor) and "cMEL" (Main Event Loop Collection) for our libraries. I am trying to cover as many bases as I possibly can in a general-case piece of code. At the moment, I have a do-nothing DA running both standalone and in THINK's debugging environment. The thing I can't seem to get to work is the goodbye kiss. I go ahead and whack the DCE's control flags with the appropriate bit mask, but I'm not getting any goodbye kiss when I tell the host app to quit (as opposed to actually closing the DA). Here's a code snippet: static mERR_code DrvrOpen ( DCtlPtr pDCE ) { mERR_code e; if ( ! pDCE -> dCtlStorage ) return ( kDrvrOpenFail ); if ( gOpenStatus ) return ( kDrvrOpenFail ); /* other stuff */ pDCE -> dCtlFlags |= dNeedGoodBye | dNeedTime; gOpenStatus = eAlreadyOpen; return ( noErr ); } I have also tried pDCE -> dCtlFlags |= dNeedGoodBye | dNeedTime; during every call to the DA, regardless of the message. That doesn't help. I actually did have the goodbye kiss working at one point, but that was before I got the close message working, and now the goodbye kiss has stopped coming through. Ideas?