Path: utzoo!attcan!uunet!samsung!usc!ucsd!rutgers!rochester!pt.cs.cmu.edu!andrew.cmu.edu!ml10+ From: ml10+@andrew.cmu.edu (Michael A. Libes) Newsgroups: comp.sys.mac.programmer Subject: Re: launching an application in multifinder Message-ID: Date: 16 Mar 90 17:43:53 GMT References: <8092@tank.uchicago.edu> Organization: Class of '91, Carnegie Mellon, Pittsburgh, PA Lines: 16 In-Reply-To: <8092@tank.uchicago.edu> > I have written a small application that is multifinder aware. However, > when the program launches and builds its document window, the > window is created behind the existing layer. After the program > runs through the rest of its initialization, the window pops into > the foreground and everything works fine. > How do I get the window to appear first in the foreground (in front > of the other layers)...prior to the execution of the init procedure? > I call getNewWindow and setPort when building the window. In the "Programmers Guide to Multifinder," Apple suggests calling "a bunch" of WaitNextEvent's or EventAvail's. 10 or so EventAvail's will assure you of having your window appear in the foreground. - Luni