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

  1. Path: sparky!uunet!spool.mu.edu!think.com!enterpoop.mit.edu!eru.mt.luth.se!lunic!sunic!kth.se!hemul.nada.kth.se!d88-jwa
  2. From: d88-jwa@hemul.nada.kth.se (Jon Wtte)
  3. Newsgroups: comp.sys.mac.programmer
  4. Subject: Re: Quick TCL Question
  5. Message-ID: <1992Dec22.205647.28200@kth.se>
  6. Date: 22 Dec 92 20:56:47 GMT
  7. References: <1992Dec22.015946.12196@rock.concert.net>
  8. Sender: usenet@kth.se (Usenet)
  9. Organization: Royal Institute of Technology, Stockholm, Sweden
  10. Lines: 24
  11. Nntp-Posting-Host: hemul.nada.kth.se
  12.  
  13. In <1992Dec22.015946.12196@rock.concert.net> tbl@rock.concert.net (Ted B Lowery -- Personal Account) writes:
  14.  
  15. >it is automatically sent a Open AppleEvent, which opens a blank document.  I
  16. >do not want a blank document automatically opened, so I want to stop this
  17. >default action.  But I cannot seem to find out how to do this without changing
  18. >the core classes.  How should I go about doing this?
  19.  
  20. Go back and redo your homework. This one is simple.
  21. Once you know it, of course :-) :-)=
  22.  
  23. Anyway, in your CMyApplication class, override CApplication :: DoAppleEvent,
  24. and in your DoAppleEvent, check for the oapp AppleEvent and just do a
  25. SetErrorResult ( noErr ) on it and return. Let all other AppleEvents
  26. through to inherited :: DoAppleEvent.
  27.  
  28. Cheers,
  29.  
  30.                             / h+
  31.  
  32. -- 
  33.  -- Jon W{tte, h+@nada.kth.se, Mac Hacker Deluxe --
  34.    The word "politics" is derived from the word "poly", meaning
  35.    "many", and the word "ticks", meaning "blood sucking parasites".
  36.                      -- Larry Hardiman
  37.