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

  1. Newsgroups: comp.sys.mac.programmer
  2. Path: sparky!uunet!psinntp!rrdtc!berg
  3. From: berg@rrdtc.donnelley.com (Erik Berg)
  4. Subject: What to wait for in WaitNextEvent after a SubLaunch
  5. Message-ID: <1992Jul21.151540.6311@donnelley.com>
  6. Sender: berg@donnelley.com (Erik Berg)
  7. Organization: R. R. Donnelley & Sons Technical Center, Lisle, Ill.
  8. Distribution: na
  9. Date: Tue, 21 Jul 1992 15:15:40 GMT
  10. Lines: 22
  11.  
  12.     I new to the world of Mac programming and I am having difficultly finding
  13. out this solution.   The problem is that I do not know what event to wait for
  14. in WaitNextEvent() after sub-Launching another application.  I want the 
  15. sub-launched application to return and then continue with the program that 
  16. launched it.  Currently the program sub-launches the desired application and
  17. then just keeps on running.  Note my program needs to sub-launch the same 
  18. application numerous times.  The program works fine with the debugger if I 
  19. step over each line of code, but in real life it just blows though the loop 
  20. in which the sub-launching takes place.
  21.  
  22.     I am using Think C v4.05 with System 6.0.5 with a Finder of 6.1.5.  I have
  23. read Tech Note #205, and my Finder does not seem to have the 
  24. acceptChildDiedEvents flag in it.  I do not want the beta version of Finder 
  25. since I will be distributing this to many users.  Also, I must write this
  26. specifically for system 6, a system 7 version will be developed separately.
  27.  
  28.                         Thanks
  29.  
  30. Erik Berg            berg@donnelley.com
  31.  
  32.  
  33.  
  34.