home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #31 / NN_1992_31.iso / spool / comp / sys / mac / programm / 20277 < prev    next >
Encoding:
Internet Message Format  |  1992-12-23  |  1.7 KB

  1. Path: sparky!uunet!pipex!bnr.co.uk!uknet!comlab.ox.ac.uk!oxuniv!vollrath
  2. From: vollrath@vax.oxford.ac.uk
  3. Newsgroups: comp.sys.mac.programmer
  4. Subject: Re: Quick TCL Question
  5. Message-ID: <1992Dec23.165216.10982@vax.oxford.ac.uk>
  6. Date: 23 Dec 92 16:52:16 GMT
  7. References: <1992Dec22.015946.12196@rock.concert.net> <jpugh-211292224942@kip2-3.apple.com>
  8. Followup-To: comp.sys.mac.programmer
  9. Organization: Oxford University VAX 6620
  10. Lines: 30
  11.  
  12. In article <jpugh-211292224942@kip2-3.apple.com>, jpugh@apple.com (Jon Pugh) writes:
  13. > In article <1992Dec22.015946.12196@rock.concert.net>, tbl@rock.concert.net
  14. > (Ted B Lowery -- Personal Account) wrote:
  15. >> 
  16. >> Hi all,
  17. >> 
  18. >> A quick question about the Think C Class Libraries.  When my program starts,
  19. >> it is automatically sent a Open AppleEvent, which opens a blank document.  I
  20. >> do not want a blank document automatically opened, so I want to stop this
  21. >> default action.  But I cannot seem to find out how to do this without changing
  22. >> the core classes.  How should I go about doing this?
  23. > Override DoAppleEvent and make the same check the default method does, but
  24. > don't do anything.  Pass all other cases.
  25. > Jon
  26.  
  27. Hi Ted,
  28. The problem with Jon's method, I think, is that most of the time you do want
  29. to respond to oApp events, for example if someone dragged a document onto
  30. your app's icon while you were switched out. You have to override Create
  31. Document anyway. When this is called from StartUpAction, the phase is
  32. appInitializing. I would check the phase in CreateDocument, and simply
  33. exit if you are in this phase. (I am using the Pascal version 1.1 of
  34. TCL, I presume this same system is used in the C version? Apologies for
  35. misleading you if it isn't)
  36.  
  37. Alun ap Rhisiart
  38. Animal Behaviour Research Group
  39. Oxford University
  40.