Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!usc!apple!well!wdh From: wdh@well.sf.ca.us (Bill Hofmann) Newsgroups: comp.sys.mac.programmer Subject: Re: Unexpected Update Events Message-ID: <24510@well.sf.ca.us> Date: 30 Apr 91 16:17:50 GMT References: <11082@bunny.GTE.COM> <1991Apr29.170744.12029@news.iastate.edu> Organization: Flashpoint Lines: 17 In article <1991Apr29.170744.12029@news.iastate.edu> niko@iastate.edu (Schuessler Nikolaus E) writes: >doesn't GetNextEvent remove the event? >Do you HAVE to use the BEGIN UPDATE and END UPDATE procedures to >get it to stop? YES! The updateEvt is generated by the Event Manager whenever no other events are pending. What it does is look down the list of open windows, and if the window "needs to be updated", an update event is generated. BeginUpdate/ EndUpdate signal the system that the update has been handled. One poorly documented fact is that BeginUpdate/EndUpdate is not reentrant. Don't try to call GNE/WNE inside it, you'll regret it. As for the other person's problem, it may be because you're stepping in the debugger, and the debugger windows cover your windows. I believe there's a flag which you can set in the project to make the debugger prevent this (you may need to boost the debugger partition size). -Bill Hofmann