[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Loading Double-clicked files

At  8:05 12/9/92 +0000, Ranson wrote:
>Rather than risk incompatibilities, you could override the documented generic
>function OPEN-DOCUMENT-HANDLER (MCL Reference, p 422).
>     Daniel.

There's even an easier way to do this if you're running with Patch 1
installed. Patch 1 seperates the "open the file" part of
OPEN-DOCUMENTS-HANDLER from the "handle the AppleEvent" part.
The following will change its behavior to always load:

(defmethod ccl::open-application-document ((a application) path &optional
  (declare (ignore startup))
  (eval-enqueue `(load ,path)))