home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #16 / NN_1992_16.iso / spool / comp / sys / mac / programm / 12776 < prev    next >
Encoding:
Text File  |  1992-07-21  |  1.5 KB  |  34 lines

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