[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: CANCEL: opening files from the Finder
- To: djskrien@COLBY.EDU (Dale Skrien)
- Subject: Re: CANCEL: opening files from the Finder
- From: email@example.com (Bill St. Clair)
- Date: Fri, 14 Aug 1992 15:50:06 -0500
- 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
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
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