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