Path: utzoo!utgpu!water!watmath!clyde!bellcore!faline!thumper!ulysses!andante!mit-eddie!bbn!rochester!udel!gatech!purdue!decwrl!ucbvax!ji.Berkeley.EDU!carlton From: carlton@ji.Berkeley.EDU.UUCP Newsgroups: comp.sys.mac.programmer Subject: Re: What can you assume about the current port? Message-ID: <24046@ucbvax.BERKELEY.EDU> Date: 12 May 88 22:31:32 GMT References: <2799@polya.STANFORD.EDU> <1654@pt.cs.cmu.edu> <314@piring.cwi.nl> Sender: usenet@ucbvax.BERKELEY.EDU Reply-To: carlton@ji.Berkeley.EDU.UUCP (Mike Carlton) Organization: University of California, Berkeley Lines: 18 Posted: Thu May 12 18:31:32 1988 In article <314@piring.cwi.nl> guido@cwi.nl (Guido van Rossum) writes: ... > >Inside Mac Volume I (is that volume still relevant? :-) says very >clearly (somewhere at the beginning ofthe QuickDraw chapter) that *all* >toolbox calls save and restore the port. This means that if the ... Don't believe everything you read. A while ago (> 2 yrs), some of the low level window manager routines would change the port behind your back. I think it was PaintBehind or something like that (it has been a while). This makes sense, since these routines are normally only called from the high level ones, but when the documentation says ALL, I expected all. Oh well. This may have been fixed by now, I haven't checked recently. mike (carlton@ji or ...!ucbvax!ji!carlton)