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

  1. Newsgroups: comp.sys.mac.programmer
  2. Path: sparky!uunet!uchinews!quads!jcav
  3. From: jcav@quads.uchicago.edu (JohnC)
  4. Subject: Re: Moving to the foreground after receiving an 'odoc' from the Finder
  5. Message-ID: <1992Jul21.161251.7693@midway.uchicago.edu>
  6. Sender: news@uchinews.uchicago.edu (News System)
  7. Reply-To: jcav@midway.uchicago.edu
  8. Organization: The Royal Society for Putting Things on Top of Other Things
  9. References: <D2150035.8p3ep6@outpost.SF-Bay.org> <mxmora-200792113832@css-mac1.sri.com> <1992Jul20.195334.19197@newstand.syr.edu>
  10. Date: Tue, 21 Jul 1992 16:12:51 GMT
  11. Lines: 25
  12.  
  13. In article <1992Jul20.195334.19197@newstand.syr.edu> greeny@top.cis.syr.edu (J. S. Greenfield) writes:
  14. >
  15. >What is the standard technique to insure that your application is in the
  16. >foreground after receiving an 'odoc' event from the finder?
  17. >
  18. >I have an application (which does not recieve suspend/resume events) which
  19.                         ^^^^^ ^^^^ ^^^ ^^^^^^^ ^^^^^^^^^^^^^^ ^^^^^^
  20. This is the root of your problem.  If you accept high-level events, you also
  21. _must_ accept OS events (suspend/resume, etc).
  22.  
  23. >brings up a custom get file after receiving an 'odoc' event.  If there are
  24. >some finder windows open, the get file dialog will occasionally appear
  25. >*behind* the finder windows, initially.  It then moves to the front, but
  26. >the dialog window is left empty.
  27.  
  28. If you want to be absolutely sure you're in front, you can call
  29. _SetFrontProcess (I think that's the name) with your own process serial #.
  30. However, I suspect that if you handle your suspend/resume events by the
  31. book, the other problems should "factor out".
  32.  
  33. -- 
  34. John Cavallino                  |  EMail: jcav@midway.uchicago.edu
  35. University of Chicago Hospitals |         John_Cavallino@uchfm.bsd.uchicago.edu
  36. Office of Facilities Management | USMail: 5841 S. Maryland Ave, MC 0953
  37. B0 f++ c+ g++ k s++ e+ h- pv    |         Chicago, IL  60637
  38.