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

  1. Path: sparky!uunet!wupost!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.114416.16460@kth.se>
  6. Date: 4 Jan 93 11:44:16 GMT
  7. References: <C04pu0.I5B@netnews.jhuapl.edu> <1992Dec31.154633.25705@alw.nih.gov> <1992Dec31.205747.16147@netcom.com>
  8. Sender: usenet@kth.se (Usenet)
  9. Organization: Royal Institute of Technology, Stockholm, Sweden
  10. Lines: 30
  11. Nntp-Posting-Host: dront.nada.kth.se
  12.  
  13. In <1992Dec31.205747.16147@netcom.com> bskendig@netcom.com (Brian Kendig) writes:
  14.  
  15. >Now I've got a question, too.  How do you cope with double-clicking
  16. >files that belong to an _open_ application?  Does this require the use
  17. >of AppleEvents?  Right now, when I dragdrop a file onto my app, it
  18. >launches and opens the file, but when I dragdrop another file onto my
  19. >app, the Finder says "Some files could not be opened.  Try opening
  20. >them from within the application."
  21.  
  22. You read the Tech Notes, or Inside Mac VI (yes, it has much more than
  23. System 7 in it)
  24.  
  25. MultiFinder will TRY and find a menu called "File" and an item
  26. called "Open..."; choose that item, and short-circuit the
  27. standard file dialog that the application will put up. However,
  28. if the application does not put up a standard file dialog, or
  29. has one of those brain-dead file filters that forces you to set
  30. the type pf document you want to open (and doesn't default to
  31. ALL OPENABLE FILES) it won't work.
  32.  
  33. You can override the menu and item names with mst# resources.
  34.  
  35. Cheers,
  36.  
  37.                         / h+
  38.  
  39. -- 
  40.  -- Jon W{tte, h+@nada.kth.se, Mac Hacker Deluxe --
  41.  
  42.  -- I don't fear death, it's dying that scares me.
  43.