Path: utzoo!utgpu!news-server.csri.toronto.edu!clyde.concordia.ca!mcgill-vision!snorkelwacker!apple!sun-barr!cs.utexas.edu!asuvax!noao!arizona!gerhard From: gerhard@cs.arizona.edu (Gerhard Mehldau) Newsgroups: comp.sys.mac.programmer Subject: Re: Multifinder Help Summary: Call EventAvail() Message-ID: <25280@megaron.cs.arizona.edu> Date: 12 Sep 90 22:49:25 GMT References: <483@nitrex.UUCP> Organization: U of Arizona CS Dept, Tucson Lines: 24 In article <483@nitrex.UUCP>, leyser@nitrex.UUCP (Jeff Leyser) writes: > When run without the debugger (either in THINK C, or as an app from the > Finder), my application initially draws all the opening dialogs and > windows in the background. But then, as soon the program enters the event > loop, it pops into the foreground. I've tried just about everything I can > think of, but nothing seems to help! > Anyone ever solve this problem before?? Sounds familiar. All you need to do is call EventAvail(everyEvent,&event) a few times (3-5) before you open any dialogs or windows. That should fix your problem. > Jeff Leyser Hey, would *you* be a spokesman for > leyser@nitrex.UUCP. a Big Oil Company(tm)? - Gerhard -- -> Gerhard Mehldau Dept. of Computer Science internet: gerhard@cs.arizona.edu University of Arizona uucp: {cmcl2,noao,uunet}!arizona!gerhard Tucson, AZ 85721, U.S.A. voice: +1 (602) 621-4632