ClockMorph?

Duncan Mak duncanmak at gmail.com
Mon Jun 5 15:37:22 UTC 2006


On 6/5/06, Duncan Mak <duncanmak at gmail.com> wrote:

>
> You can see how ClockMorph gets its content from the ClockMorph>>step
> method. Right now, it's hard-coded to use 'Time now'.
>
> You could get the functionality you want by adding a new instance
> variable, 'time', and a new method 'time:' that'll set the variable.
>
> Remember to set it to Time now in ClockMorph>>initialize too.
>

Come to think of it, this will only work if you use blocks, because
everytime step is called, a new Time needs to be calculated.

Duncan.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.squeakfoundation.org/pipermail/squeak-dev/attachments/20060605/2a2025a4/attachment.htm


More information about the Squeak-dev mailing list