home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!usc!cs.utexas.edu!qt.cs.utexas.edu!yale.edu!spool.mu.edu!enterpoop.mit.edu!eru.mt.luth.se!lunic!sunic!kth.se!dront.nada.kth.se!d88-jwa
- From: d88-jwa@dront.nada.kth.se (Jon Wtte)
- Newsgroups: comp.sys.mac.programmer
- Subject: Re: How does my app know that its document was double clicked?
- Message-ID: <1993Jan4.113212.16322@kth.se>
- Date: 4 Jan 93 11:32:12 GMT
- References: <C04pu0.I5B@netnews.jhuapl.edu>
- Sender: usenet@kth.se (Usenet)
- Organization: Royal Institute of Technology, Stockholm, Sweden
- Lines: 21
- Nntp-Posting-Host: dront.nada.kth.se
-
- In <C04pu0.I5B@netnews.jhuapl.edu> jensen@aplcomm.jhuapl.edu (Robert Jensen) writes:
-
- >I wrote an application, defined document types, and I can double click on
- >a document created by the application and cause the application to be
- >launched. How does the application know to open the double-clicked
- >document? I really did study Inside Macintosh, but couldn't figure this
- >out. Thanks for any hints.
-
- Under SYstem 6, you'll have to call CountAppParams() and GetAppParams()
- (It's in Inside Mac II)
-
- Under system 7, you get 'oapp' and/or 'odoc' AppleEvents.
-
- Cheers,
-
- / h+
-
- --
- -- Jon W{tte, h+@nada.kth.se, Mac Hacker Deluxe --
-
- -- I don't fear death, it's dying that scares me.
-