Path: utzoo!utgpu!news-server.csri.toronto.edu!dgp.toronto.edu!tracyn Newsgroups: comp.sys.mac.programmer From: tracyn@dgp.toronto.edu (Tracy Narine) Subject: Notification Manager question Message-ID: <1990Nov18.005651.893@jarvis.csri.toronto.edu> Organization: CSRI, University of Toronto Distribution: na Date: 18 Nov 90 05:56:51 GMT Lines: 30 Newsgroups: comp.sys.mac.programmer Subject: Notification Manager question Expires: References: Sender: Followup-To: Distribution: na Organization: CSRI, University of Toronto Keywords: I am currently writing a driver that uses the notification manager. I am trying to incorporate a response procedure into my code(for the notification manager). The problem I have run into is how do I access my globals in the response procedure. My globals are stored in a structure. When you call NMInstall(x), we have x = QElemPtr. In technote 184 though, it shows you pass in (QElemPtr) &myNote where myNote is a NMRec. I can understand why this is done since the first three fields of NMRec seem to be the same as the fields for a QElemPtr. You can store the location of the globals in a field of the NMRecord. When, the response procedure is called, the parameter passed in is a QElemPtr. This QElemPtr of the response procedure should point me somehow to the original NMRec where I stored my globals, but I am unsure how. If anyone knows how I should access my NNRec please email me or post news. tracy