home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!gatech!destroyer!sol.ctr.columbia.edu!eff!news.oc.com!apple!cambridge.apple.com!bill@cambridge.apple.com
- From: bill@cambridge.apple.com (Bill St. Clair)
- Newsgroups: comp.lang.lisp.mcl
- Subject: Re: CANCEL: opening files from the Finder
- Message-ID: <9208141945.AA23728@cambridge.apple.com>
- Date: 14 Aug 92 20:50:06 GMT
- Sender: info-mcl-request@cambridge.apple.com
- Lines: 25
- Approved: comp.lang.lisp.mcl@Cambridge.Apple.C0M
- Full-Name: Bill St. Clair
- Original-To: djskrien@COLBY.EDU (Dale Skrien)
- Original-Cc: info-mcl
-
- >Please ignore my last request for help about opening files from the Finder.
- >I just found the definition of the open-documents-handler method on the CD
- >ROM and think I can get what I need by modifying that for my app.
-
- Patch 1 for MCL 2.0 will make OPEN-DOCUMENTS-HANDLER call the
- OPEN-APPLICATION-DOCUMENT generic function for each file passed
- in the appleevent. The OPEN-APPLICATION-DOCUMENT generic function
- is passed two arguments: *APPLICATION* and a pathname for the file.
- The method specialized on the APPLICATION class opens opens text
- files with FRED or loads fasl files. You can define your own
- subclass of APPLICATION and set *APPLICATION* to an instance of
- this class to cause your method on OPEN-APPLICATION-DOCUMENT to
- be invoked.
-
- PRINT-DOCUMENTS-HANDLER similarly calls PRINT-APPLICATION-DOCUMENT.
-
- The deafult MCL startup code (which will run if you do not pass a
- :TOPLEVEL-FUNCTION argument to SAVE-APPLICATION) also does its
- open and print handling by calling OPEN-APPLICATION-DOCUMENT or
- PRINT-APPLICATION-DOCUMENT.
-
- Patch 1 for MCL 2.0 is now in beta test. It should be shipping soon.
- I will send you a copy of the "appleevents-patch" which implements
- this new feature if you would like to start using it before patch
- 1 ships.
-