To open an Inspector window, you send the message inspect to the object whose contents you want to examine.
You can send the message inspect by highlighting an object or code expression, and then selecting Inspect from the Edit menu. If you inspect a code expression, the expression executes first, and the Inspector opens on the result of the expression.
For example, to inspect the class Chooser, which you created in Example: Defining the class Chooser, do the following:
The Inspector has two panes: a list of variables pane
(left); and a value pane (right). The list of variables
includes the Chooser object itself (self) followed by the
object's instance variables.
You can also send the message inspect by adding a statement to your code that sends inspect to an object. When the code runs, an inspector opens on the object's internal state.
After you open an inspector on an object, you can do the following: