Path: utzoo!attcan!utgpu!news-server.csri.toronto.edu!mailrus!cs.utexas.edu!wuarchive!psuvax1!xavier!jackiw From: jackiw@cs.swarthmore.edu (Nick Jackiw) Newsgroups: comp.sys.mac.programmer Subject: Re: Movable-modal dialogs Message-ID: Date: 7 Jul 90 17:07:21 GMT Sender: news@xavier.swarthmore.edu (Usenet News) Reply-To: jackiw@cs.swarthmore.edu (Nick Jackiw) Organization: Visual Geometry Project, Swarthmore College, PA Lines: 41 bhil@ohs.UUCP (Brian T. Hill) writes: > > Why is MultiFinder giving me the mouseclick event? Why is it giving it to > me nine times? I haven't confirmed this in the case of movable modal dialogs, but when Multifinder switches, it operates different depending upon whether or not you are 'Multifinder Aware.' If you are not, Multifinder has to go through a charade to convince you to convert any private clipboard data structure your application may use into the global desk scrap. It does this by attempting to open a desk-accessory, and therefore sends you mouseclicks in the menubar. (The assumption is that your application will convert its scrap before a desk-accessory comes up so the accessory can use it too.) After a while of failing to convince you that a desk accessory is coming up, Multifinder gives up and switches you out anyway. These pseudomouseclicks are presumably what you're seeing. The way to avoid them is to become Multifinder aware. This is done by toggling the appropriate bit in your SIZE resource and adding Suspend and Resume event-handling to your event loop. If you don't have access to documentation describing how to do this (Programming Multifinder, any of a variety of technotes, or Inside Mac VI), send e-mail. > > I know this isn't really a big problem, but I'd like to solve it before we > start our BETA sites next week. > > Brian T. Hill > trACE(tm) Software Development > bhil@ohs.uunet.uu.net > bhil@ohs.uucp -- -----Nicholas Jackiw [jackiw@cs.swarthmore.edu|jackiw@swarthmr.bitnet]----- "Here is how I built this artificial mine. I snatched a female louse from the hair of humanity. I was seen to lie with her on three successive nights, and then I flung her into the pit." _Maldoror_, Canto II