home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #1 / NN_1993_1.iso / spool / comp / sys / mac / programm / 20592 < prev    next >
Encoding:
Internet Message Format  |  1993-01-04  |  1.2 KB

  1. 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
  2. From: d88-jwa@dront.nada.kth.se (Jon Wtte)
  3. Newsgroups: comp.sys.mac.programmer
  4. Subject: Re: How does my app know that its document was double clicked?
  5. Message-ID: <1993Jan4.113212.16322@kth.se>
  6. Date: 4 Jan 93 11:32:12 GMT
  7. References: <C04pu0.I5B@netnews.jhuapl.edu>
  8. Sender: usenet@kth.se (Usenet)
  9. Organization: Royal Institute of Technology, Stockholm, Sweden
  10. Lines: 21
  11. Nntp-Posting-Host: dront.nada.kth.se
  12.  
  13. In <C04pu0.I5B@netnews.jhuapl.edu> jensen@aplcomm.jhuapl.edu (Robert Jensen) writes:
  14.  
  15. >I wrote an application, defined document types, and I can double click on 
  16. >a document created by the application and cause the application to be
  17. >launched.  How does the application know to open the double-clicked 
  18. >document?  I really did study Inside Macintosh, but couldn't figure this 
  19. >out.  Thanks for any hints.
  20.  
  21. Under SYstem 6, you'll have to call CountAppParams() and GetAppParams()
  22. (It's in Inside Mac II)
  23.  
  24. Under system 7, you get 'oapp' and/or 'odoc' AppleEvents.
  25.  
  26. Cheers,
  27.  
  28.                         / h+
  29.  
  30. -- 
  31.  -- Jon W{tte, h+@nada.kth.se, Mac Hacker Deluxe --
  32.  
  33.  -- I don't fear death, it's dying that scares me.
  34.