home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #27 / NN_1992_27.iso / spool / comp / sys / mac / programm / 18814 < prev    next >
Encoding:
Internet Message Format  |  1992-11-23  |  2.2 KB

  1. Path: sparky!uunet!usc!sol.ctr.columbia.edu!destroyer!news.itd.umich.edu!potts
  2. From: potts@oit.itd.umich.edu (Paul Potts)
  3. Newsgroups: comp.sys.mac.programmer
  4. Subject: Re: Simulating odoc event from THINK Pascal?
  5. Date: 23 Nov 1992 15:24:06 GMT
  6. Organization: Instructional Technology Laboratory, University of Michigan
  7. Lines: 31
  8. Message-ID: <1eqt2mINNp5s@terminator.rs.itd.umich.edu>
  9. References: <goodill_eric-201192084213@ericg.cpd.tandem.com> <By3AIq.Ht6@world.std.com>
  10. NNTP-Posting-Host: helen.oit.itd.umich.edu
  11.  
  12. In article <By3AIq.Ht6@world.std.com> siegel@world.std.com (Rich Siegel) writes:
  13. >In article <goodill_eric-201192084213@ericg.cpd.tandem.com> goodill_eric@tandem.com (Eric Goodill) writes:
  14. >>
  15. >>Has anybody come up with a relatively easy way to simulate odoc events from
  16. >>within THINK Pascal so that I can use the source level debugger while
  17. >>debugging my Apple event handlers?  As it stands, I've just been using
  18. >>Macsbug which works just fine but is a bit tedious.
  19. >
  20. >THINK Pascal will pass Apple Events on to the running program. The catch
  21. >is that since THINK Pascal suspends the running program when you switch
  22. >out, the Apple Event needs to come from another machine on the network,
  23. >a background daemon-like program that sends them once in a while, or
  24. >from the running program itself.
  25.  
  26. A related note - when I was working on some AppleEvent code last year, I
  27. would use a Hypercard stack with the AE XCMDs to send events to my program,
  28. and leave my program running under the debugger (THINK C, not Pascal) with
  29. a breakpoint in my AE handlers. Both were running on the same machine - I
  30. would swap from the project running in the debugger to Hypercard, send the
  31. event, and then when it was received the debugger would stop at the breakpoint.
  32. This was a tremendous timesaver. I'm not sure if it is possible to do something
  33. like this in THINK Pascal, though.
  34.  
  35. (Actually I did this on a 4-meg SE/30 with virtual memory set to 16 megs;
  36. performance wasn't really that bad, since the main swapping occurred only when
  37. I switched applications. At the time System 7 was pretty new, and I was
  38. amazed that this scheme actually worked!)
  39.  
  40. -- 
  41. Politics is crime pursued by other means.              
  42. potts@oit.itd.umich.edu      CI$ 71561,3362 (rarely)
  43.