Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!caen!kuhub.cc.ukans.edu!2fmlcalls From: 2fmlcalls@kuhub.cc.ukans.edu Newsgroups: comp.sys.mac.programmer Subject: Re: Unexpected Update Events Message-ID: <1991Apr29.192210.30183@kuhub.cc.ukans.edu> Date: 29 Apr 91 19:22:10 CDT References: <11082@bunny.GTE.COM> <1991Apr29.170744.12029@news.iastate.edu> Organization: University of Kansas Academic Computing Services Lines: 23 In article <1991Apr29.170744.12029@news.iastate.edu>, niko@iastate.edu (Schuessler Nikolaus E) writes: > In article <11082@bunny.GTE.COM> CAH0@bunny.gte.com (Chuck Hoffman) writes: >>three windows open. With the Debugger, I'm finding that about every >>second there is an update event generated for one or the other of the >>second and third windows. I get all the update events I expect; these are > > I was writing a game and it only had one window. I had it redraw the > screen every time there was an update event... Same problem! There > were so many update events that that the screen constantly flickered > while it was doing the updating... > > doesn't GetNextEvent remove the event? > Do you HAVE to use the BEGIN UPDATE and END UPDATE procedures to > get it to stop? No - GetNextEvent does not remove it. My understanding is that the event is removed, but the update rgn is not cleared. Begin/EndUpdate do that. So, yes, you need BeginUpdate and EndUpdate. (Don't bum, I had the same problem once and it was a game as well - real fast game, huh? :)) john calhoun