[Newbies] Re: [Newbie's] Getting a handle on objects which are instantiated through the various flaps

Edgar J. De Cleene edgardec2001 at yahoo.com.ar
Fri Feb 8 16:13:25 UTC 2008

El 2/8/08 9:36 AM, "Andy Burnett" <andy.burnett at knowinnovation.com>

> I imagine the answer to this is going to be pretty obvious. However... ;-)
> When I pull an object from a flap onto the desktop, how can I get a handle on
> it so that I can send it messages programmatically?  What I am hoping is that
> I could drag e.g. the bouncing atom thing into a project, and then - in a
> workspace? - be able to send it messages.  Or, if this is completely the wrong
> approach, how else might I be able to play with an object instantiated in this
> way.
> Thanks
> AB
If you got the handle, find the "debug" item, (the wrench icon).
When the Inspector window shows, you have how to send messages to object in
the lower pane (the code pane)
As example, drag a Ellipse from the Supplies flap.
Bring the halo with command-click., select the debug mode and bring the
Inspector window with the "inspector morph".
The window should say same like an EllipseMorph <Ellipse> (2954)
In the lower pane type self color: Color red.
Select and do it.
In the debug , you also have an item labelled morph protocol and (text) or
(tiles) for you see all messages this object could understand with same
In right panel, the methods marked in bold was implemented in same class,
the others was inherited from some "mother" class or high in hierarchy.
Which hierarchy ?, you say.
In halo find the select browse class item and you bring the Hierarchy
For EllipseMorph, the "mother" is BorderedMorph and up was Morph, Object,

So, any message this classes understand, your Ellipse understand.

I advice you got a copy of SqueakByExample


More information about the Beginners mailing list