7.1.3 Filtering slot information

The Filter box can be used to filter out information about slots you are not interested in. This is especially useful if you are examining classes which contain a large number of slots.

The example below shows you how to create an instance of a CAPI object, and then limit the display in the Class Browser so that the only slots displayed are those you are interested in:

  1. In a Listener, create a button object by typing the following:
  2. (capi:contain (make-instance 'capi:list-panel
                                 :items '("Apple" "Orange" "Pear")))

    This creates a list panel object and displays it on your screen. The list panel object is the current value in the Listener.

  3. Make the Listener window active and choose Values > Class to examine the class of the object in the Class Browser.
  4. Click the Slots tab in the Class Browser to switch to the Slots view.
  5. Suppose you are only interested in seeing the callbacks that can be defined in a list panel.

  6. Type callback in the Filter box.

Figure 7.3 Using filters to limit the display in the Class Browser

You can immediately see the types of callback that are available to CAPI list panel objects. See the LispWorks CAPI Reference Manual for details about these callbacks.

For more information about using filters, see Filtering information.

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