# 2.05: Inspecting an Object


You can test the effect of the code you have written by creating a new SBECell object and inspecting it.

$$\bigstar$$ Open a workspace. Type the expression SBECell new and inspect it.

The left-hand pane of the inspector shows a list of instance variables; if you select one (try bounds), the value of the instance variable is shown in the right pane. You can also use the inspector to change the value of an instance variable.

$$\bigstar$$ Change the value of bounds to 0@0 corner: 50@50 and accept it.

The bottom pane of the inspector is a mini-workspace. It’s useful because in this workspace the pseudo-variable self is bound to the object being inspected.

$$\bigstar$$ Type the text self openInWorld in the bottom pane and do it.

The cell should appear at the top left-hand corner of the screen, indeed, exactly where its bounds say that it should appear. Blue-click on the cell to bring up the morphic halo. Move the cell with the brown (next to top-right) handle and resize it with the yellow (bottom-right) handle. Notice how the bounds reported by the inspector also change.

$$\bigstar$$ Delete the cell by clicking on the x in the pink handle.

This page titled 2.05: Inspecting an Object is shared under a CC BY-SA 3.0 license and was authored, remixed, and/or curated by Andrew P. Black, Stéphane Ducasse, Oscar Nierstrasz, Damien Pollet via source content that was edited to the style and standards of the LibreTexts platform; a detailed edit history is available upon request.