Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10 UW 5/3/83; site uw-beaver Path: utzoo!watmath!clyde!burl!ulysses!mhuxj!houxm!vax135!cornell!uw-beaver!info-mac From: info-mac@uw-beaver (info-mac) Newsgroups: fa.info-mac Subject: Re: Update Events Message-ID: <2043@uw-beaver> Date: Fri, 26-Oct-84 12:44:59 EDT Article-I.D.: uw-beave.2043 Posted: Fri Oct 26 12:44:59 1984 Date-Received: Sat, 27-Oct-84 04:13:24 EDT Sender: daemon@uw-beave Organization: U of Washington Computer Science Lines: 12 From: John W. Peterson Ah yes, that IS a real gotcha. It's also worth keeping in mind the same holds true for activate events as well, you MUST set the port before drawing anything. The place where I found this out the hard way was when my code closed a desk accessory and forgot to reset the port when the activate event occured for my window. It would use the old accessory's (now disposed) port, and the window manager would try and clip the drawing to the disposed port's region. This sent quickdraw into never-never land because the disposed region was now garbage... -------