All Manuals > LispWorks Delivery User Guide > 6 Delivery on Mac OS X


6.5 File associations for a Macintosh application

To create an association between your LispWorks for Macintosh application and files with a specified type (file extension):

  1. Create the appropriate entries for the file type in the CFBundleDocumentTypes array within the Info.plist file of the delivered application.
  2. Define a subclass of capi:cocoa-default-application-interface with a message-callback.
  3. Implement the :open-file message in the message-callback function.
  4. Set the application interface on startup.

Also see the examples mentioned in Delivering a Cocoa CAPI application examples.

LispWorks Delivery User Guide - 10 Aug 2017