(Class new
superclass: StringMorph;
setFormat: StringMorph format;
compile: 'step self contents: Time now printString';
new)
openInWindowLabeled: 'Petite Horloge'.
Don't forget the setFormat: or the VM will crash.Some explanations.
Shouldn't you also call the superclass step too, in case it's doing something?
ReplyDeleteYes that would be better.
ReplyDeleteActually StringMorph>>#step is not defined and Morph>>#step is empty.