Small fix in executable code in SimpleButtonMorph's class comment

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

Small fix in executable code in SimpleButtonMorph's class comment

espin
Hi,
while looking for an example on how to create a simple morphic button,
I found that
the (executable) example in SimpleButtonMorph is not working:
it uses Smalltalk as target for beep message while it should use Beeper

Old:

        SimpleButtonMorph new
                target: Smalltalk;
                label: 'Beep!';
                actionSelector: #beep;
                openInWorld

New:

        SimpleButtonMorph new
                target: Beeper;
                label: 'Beep!';
                actionSelector: #beep;
                openInWorld

Remember to remove all emphasis (cmd-0) select all new version and
make it executable (cmd-6).

Should somebody with Trunk commit power think this is of any use
(especially for newcomers), please commit it.
Hope it helps and thanks in advance
Bye
--
Enrico Spinielli
"Do Androids dream of electric sheep?"— Philip K. Dick
"Hear and forget; see and remember;do and understand."—Mitchel Resnick