Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!wuarchive!gem.mps.ohio-state.edu!uakari.primate.wisc.edu!uwm.edu!dogie.macc.wisc.edu!schaefer!uhura!qureshi From: qureshi@uhura.cs.wisc.edu (Mohammad Qureshi) Newsgroups: comp.sys.mac.programmer Subject: VBL or patch traps? Message-ID: <189@uhura.cs.wisc.edu> Date: 15 Oct 89 17:47:31 GMT Reply-To: qureshi@uhura (Mohammad Qureshi) Distribution: usa Organization: Undergraduate Projects Laboratory, University of Wisc. - Madison Lines: 11 I have been considering writing an INIT that would, after a set time, present a dialog to the user. This would be a sort of alarm which the user would be able to set (using a cdev interface). My question is, should I implement this alarm as a VBL task, checking each time if one of the alarm times has been reached, or should I patch WaitNextEvent/GetNextEvent and/or appropriate traps to check whether or not the alarm should go off? I know I could implement it as a driver and the wait time can be set this way, but I really don't think that that is my answer. Any assistance will be greatly appreciated.