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