Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!usc!apple!keith From: keith@Apple.COM (Keith Rollin) Newsgroups: comp.sys.mac.programmer Subject: Re: MultiFinder vs WDEF Keywords: MultiFinder, WDEF, major switch Message-ID: <47767@apple.Apple.COM> Date: 5 Jan 91 02:50:02 GMT References: <47731@apple.Apple.COM> Organization: Apple Computer Inc., Cupertino, CA Lines: 35 In article <47731@apple.Apple.COM> stevec@Apple.COM (Steve Christensen) writes: >rlr@lad.med.utas.edu.au (Dr Ross L Richardson) writes: >>Just a quick MultiFinder gripe: >> >> Whilst debugging a WDEF (ID = 128), I "discovered" that MultiFinder >>[6.1b9] refuses to perform a major switch when varCode 1 is used. Is this >>documented somewhere I missed? >> >>Seems rather severe to me. Applies to (rDocProc + 1) too. [What became of >>the corners of diameter 4 - IM I p274?] >> >>What will System 7 do? > >It won't let you switch because the standard WDEF (ID=0) varCode 1 is the >modal dialog window. Normally if a modal dialog is the front-most window, >you don't want to allow switching because a critical operation needs to be >completed. > >Yes, this creates problems with other WDEFs, but it's been this way since >MultiFinder came out, so I guess it's now a feature? I don't know if 7.0 >will do the same thing, but I suspect it will... Versions of MultiFinder that come with System Software after MultiFinder 6.1b9 was created work a little differently. What they do is look for a call to ModalDialog to inhibit switching, rather than look at the variant code of the window. Therefore, the original poster's WDEF should work when using the MultiFinder that comes with the normal customer's system. -- ------------------------------------------------------------------------------ Keith Rollin --- Apple Computer, Inc. --- Developer Technical Support INTERNET: keith@apple.com UUCP: {decwrl, hoptoad, nsc, sun, amdahl}!apple!keith "Argue for your Apple, and sure enough, it's yours" - Keith Rollin, Contusions