Next: , Previous: Panes and Gadgets, Up: The First Application


3.2 Defining Application Frames

Each CLIM application is defined by an application frame. An application frame is an instance of the class application-frame. As a CLIM user, you typically define a class that inherits from the class application-frame, and that contains additional slots needed by your application. It is considered good style to keep all your application-specific data in slots in the application frame (rather than, say, in global variables), and to define your application-specific application frame in its own package. The usual way to define an application frame is to use the macro define-application-frame. This macro works much like defclass, but also allows you to specify the hierarchy of panes and gadgets to use.