Setting targets for buttons

subbukk subbukk at gmail.com
Thu May 24 06:24:55 UTC 2007


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



More information about the Squeak-dev mailing list