Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!ncar!boulder!pratt From: pratt@boulder.Colorado.EDU (Jonathan Pratt) Newsgroups: comp.sys.mac.programmer Subject: Re: why does a ModalDialog filter proc get empty update events? Summary: No pre-filtering... Keywords: ModalDialog filterproc update empty Message-ID: <10397@boulder.Colorado.EDU> Date: 1 Aug 89 04:10:40 GMT References: <4468@uhccux.uhcc.hawaii.edu> <3257@internal.Apple.COM> Sender: news@boulder.Colorado.EDU Reply-To: pratt@boulder.Colorado.EDU (Jonathan Pratt) Organization: University of Colorado, Boulder Lines: 19 In article <3257@internal.Apple.COM> jerryg@Apple.COM (Jerry Godes) writes: [Notes that ModalDialog passes update events for other windows] >My question now is why is an update event being generated for the other >window? Maybe I'll go snooping in MacsBug a bit later and see what's going >on. > This is a pretty common gotcha. I guess we just assume that ModalDialog is going to do some pre-filtering for us so that we only receive events related to the dialog window, but in fact I believe you get the event pretty much straight from GetNextEvent (which means of course that you'll hear if *any* of your windows needs updating). Jonathan /* Jonathan Pratt Internet: pratt@boulder.colorado.edu * * Campus Box 525 uucp: ..!{ncar|nbires}!boulder!pratt * * University of Colorado * * Boulder, CO 80309 Phone: (303) 492-4293 */