home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.sys.mac.programmer
- Path: sparky!uunet!cs.utexas.edu!sdd.hp.com!usc!rpi!batcomputer!cornell!csuley
- From: csuley@cs.cornell.edu (Christopher Suley)
- Subject: Re: Moving to the foreground after receiving an 'odoc' from the Finder
- Message-ID: <1992Jul21.174631.20664@cs.cornell.edu>
- Organization: Cornell Univ. CS Dept, Ithaca NY 14853
- References: <D2150035.8p3ep6@outpost.SF-Bay.org> <mxmora-200792113832@css-mac1.sri.com> <1992Jul20.195334.19197@newstand.syr.edu>
- Date: Tue, 21 Jul 1992 17:46:31 GMT
- Lines: 23
-
- greeny@top.cis.syr.edu (J. S. Greenfield) writes:
- >
- >What is the standard technique to insure that your application is in the
- >foreground after receiving an 'odoc' event from the finder?
- >
- >I have an application (which does not recieve suspend/resume events) which
- >brings up a custom get file after receiving an 'odoc' event. If there are
- >some finder windows open, the get file dialog will occasionally appear
- >*behind* the finder windows, initially. It then moves to the front, but
- >the dialog window is left empty.
- >
- >Can anyone provide me with references to relevant portions of IM or the
- >technical notes?
- >
-
- In _Macintosh Programming Secrets, 2e_, they call EventAvail 3 times when
- the program starts up to bring it to the front. They say that this is the
- "standard" way to bring a program to the front under MultiFinder.
- --
- |}-{}-{}-{}-{}-{}-{}-{}-{}-{|
- {} Christopher S. Suley {} "do you expect me to talk?"
- {} csuley@cs.cornell.edu {} "no, mr. bond, i expect you to die."
- |}-{}-{}-{}-{}-{}-{}-{}-{}-{|
-