7.1 Simple use of the Class Browser

This section describes some of the basic ways in which you can use the Class Browser by giving some examples. If you wish, you can skip this section and look at the descriptions of each individual view: these start with Examining slot information.

When examining a class, the slot names of the class are displayed by default.

To examine a class, follow the instructions below:

  1. Create a push button panel by entering the following in the Listener:
  2. (capi:contain 
     (make-instance 'capi:push-button-panel 
                    :title "Test Buttons" 
                    :items '(:one :two :three)))

    The push button panel appears on your screen.

  3. With the Listener as the active window, choose Values > Class .
  4. This invokes the Class Browser on the button panel. The class capi:push-button-panel is described in the Class Browser.

Figure 7.1 Examining classes in the Class Browser

Notice that, although you invoked the browser on an object that is an instance of a class, the class itself is described in the Class Browser. Similarly, if you had pasted the object into an Inspector, the instance of that object would be inspected. Using the environment, it is very easy to pass Common Lisp objects between different tools in this intelligent fashion. This behavior is achieved using the Common LispWorks clipboard; see Using the clipboard for details.

See Performing operations on selected objects for a full description of the standard action commands available.

7.1.1 Examining slots

7.1.2 Examining inherited slots

7.1.3 Filtering slot information

7.1.4 Examining other classes

7.1.5 Sorting information

Common LispWorks User Guide (Unix version) - 21 Feb 2008