Setting targets for buttons

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

Setting targets for buttons

K. K. Subramaniam
Hi,

I noticed two menu entries for setting targets for buttons - set target and
sight target. The first entry puts a list of classes of morphs in the current
project while the second gives a crosshair cursor to pick the target. The
second appears to be a better choice and sighting is done visually. Do we
need both?

I found another use for the first entry. By changing its selector
to 'setTarget' instead of 'targetWith', I was able to create wrapper morphs
around global objects like SmalltalkImage, Smalltalk, Cursor that are not
visible in Morphic today. The menu entries which appear under "do..." in
WorldMenu could be wrapped in such buttons and put into object catalog.

"Doing with objects" is hard when they are not visible.

Curious .. Subbu