nacho wrote
> How do I achieve this?

Two options:
1. (Unscalable hack) Identify them by a unique feature of their description
e.g. "(World submorphs detect: [ :e | e color = Color blue ]) addMorph:
(World submorphs detect: [ :e | e isKindOf: EllipseMorph ])"
2. Bring back a feature like that of MathMorphs [1, pg. 9], which had a
revolutionary interface where, for each argument to a message, you drag an
object token (a Morph) onto the message receiver, and then select the
message via a context menu.

I've been playing around with this and other ideas in my LivingCode project.
In the screencast at https://www.youtube.com/watch?v=ejQh6wkII2Y, you can
see a rough proof of concept - creating two tokens for your two Morphs, and
then supplying the ellipse's token as an argument for the other Morph.

[1] http://coweb.cc.gatech.edu:8888/squeakbook/uploads/tex-mathmorphs.pdf



-----
Cheers,
Sean
--
View this message in context: 
http://forum.world.st/How-to-send-messages-to-an-object-tp4804394p4804407.html
Sent from the Pharo Smalltalk Users mailing list archive at Nabble.com.

Reply via email to