home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #18 / NN_1992_18.iso / spool / comp / sys / mac / programm / 13992 < prev    next >
Encoding:
Text File  |  1992-08-14  |  1.4 KB  |  38 lines

  1. Newsgroups: comp.sys.mac.programmer
  2. Path: sparky!uunet!cs.utexas.edu!natinst.com!stepan
  3. From: stepan@natinst.com (Stepan Riha)
  4. Subject: Re: THINK Debugger Question
  5. Message-ID: <1992Aug14.153137.873@natinst.com>
  6. Sender: news@natinst.com
  7. Nntp-Posting-Host: falcon.natinst.com
  8. Organization: National Instruments, Austin, TX
  9. References: <steve.herman-130892173316@hermasj.msfc.nasa.gov.>
  10. Date: Fri, 14 Aug 1992 15:31:37 GMT
  11. Lines: 25
  12.  
  13. In article <steve.herman-130892173316@hermasj.msfc.nasa.gov.> steve.herman%express@freedom.msfc.nasa.gov (Steve Herman) writes:
  14. >
  15. >  Is there a way to run in the THINK C debugger and break on an Open
  16. >Document AppleEvent (or any other apple event for that matter)?
  17. >
  18. >The copy of my app running under the debugger never gets the apple event. 
  19. >It seems that under the debugger you aren't really running under your
  20. >application's signature.  Is this true?
  21. >
  22. >Any ideas?
  23. >
  24.  
  25. Yup, it's true.  The project "runs" as type "PROJ" and creator "KAHL".  That's
  26. also why "About this Macintosh" shows a project icon for your program.  I don't
  27. know why you get the generic application icon in the menubar, though.
  28.  
  29. I fixed this "problem" by faking ODOC events during development.  I'd have a
  30. menu item that prompts me with a file dialog and then sends an ODOC event to my
  31. program with the file I selected.  Of course, this menu is removed once I'm
  32. finished with debugging...
  33.  
  34. Stepan
  35. -- 
  36.    Stepan Riha -- stepan@natinst.com
  37.  
  38.