home *** CD-ROM | disk | FTP | other *** search
- 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
- From: d88-jwa@hemul.nada.kth.se (Jon Wtte)
- Newsgroups: comp.sys.mac.programmer
- Subject: Re: Quick TCL Question
- Message-ID: <1992Dec22.205647.28200@kth.se>
- Date: 22 Dec 92 20:56:47 GMT
- References: <1992Dec22.015946.12196@rock.concert.net>
- Sender: usenet@kth.se (Usenet)
- Organization: Royal Institute of Technology, Stockholm, Sweden
- Lines: 24
- Nntp-Posting-Host: hemul.nada.kth.se
-
- In <1992Dec22.015946.12196@rock.concert.net> tbl@rock.concert.net (Ted B Lowery -- Personal Account) writes:
-
- >it is automatically sent a Open AppleEvent, which opens a blank document. I
- >do not want a blank document automatically opened, so I want to stop this
- >default action. But I cannot seem to find out how to do this without changing
- >the core classes. How should I go about doing this?
-
- Go back and redo your homework. This one is simple.
- Once you know it, of course :-) :-)=
-
- Anyway, in your CMyApplication class, override CApplication :: DoAppleEvent,
- and in your DoAppleEvent, check for the oapp AppleEvent and just do a
- SetErrorResult ( noErr ) on it and return. Let all other AppleEvents
- through to inherited :: DoAppleEvent.
-
- Cheers,
-
- / h+
-
- --
- -- Jon W{tte, h+@nada.kth.se, Mac Hacker Deluxe --
- The word "politics" is derived from the word "poly", meaning
- "many", and the word "ticks", meaning "blood sucking parasites".
- -- Larry Hardiman
-