Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!ames!purdue!bu-cs!dartvax!eleazar.dartmouth.edu!blakem From: blakem@eleazar.dartmouth.edu (Blake Meike) Newsgroups: comp.sys.mac Subject: But if I can't use SystemTask...??? Summary: How do I correctly run DA's using WNE Keywords: WaitNextEvent SystemTask DA MultiFinder EventAvail Message-ID: <13265@dartvax.Dartmouth.EDU> Date: 28 Apr 89 17:49:38 GMT Sender: news@dartvax.Dartmouth.EDU Reply-To: B.Meike@dartmouth.edu Organization: Dartmouth College, Hanover, NH Lines: 14 What is the correct way to make sure that DA's get their slices of the pie when using WaitNextEvent? My application, at one point, sits in a fairly tight loop waiting for a mouse down. It calls EventAvail. It used, also, to call SystemTask, per the documentation, to be sure that DA's got a chance at the processor. New docs say that if you call WaitNextEvent, you shouldn't call SystemTask. Ever? Should I still be calling it in the loop with EventAvail? Or should I call something else (what)? Or does EventAvail do it automatically now? Any enlightenment would be greatly appreciated. Mail words of wisdom to: B.Meike@dartmouth.edu