[Cuis-dev] Object wantsSteps

Gerald Klix cuis.01 at klix.ch
Mon Mar 27 04:52:05 PDT 2023


The simplest Morph that comes to my mind is UpdatingMenuItemMorph.

See UpdatingMenuItemMorph>>#wantsSteps UpdatingMenuItemMorph>>#stepTime 
UpdatingMenuItemMorph>>#stepAt:

However I have no clue why UpdatingMenuItemMorph>>#stepTime is 
categorized as 'testing'.


HTH,

Gerald



On 3/27/23 1:44 PM, Hernán Wilkinson via Cuis-dev wrote:
> Those messages are part of the Morph framework.
> They do not work on regular objects, I do not know why they are 
> defined in Object, perhaps a legacy reason.
> If you want to send messages at regular intervals, create a thread to 
> do it using the message #fork or similar (look at BlockClosure class)
>
> Cheers
> Hernan.
>
> On Mon, Mar 27, 2023 at 12:18 AM Alexandre Rousseau via Cuis-dev 
> <cuis-dev at lists.cuis.st <mailto:cuis-dev at lists.cuis.st>> wrote:
>
>     I'd like my Object's subclass instances to send messages at
>     regular intervals.
>
>     I see that Object defines the #wantsSteps and #stepAt: selectors,
>     but I can't find examples of usage.
>
>     Does anyone have anything on this?
>
>     Thanks
>
>     -- 
>     Cuis-dev mailing list
>     Cuis-dev at lists.cuis.st <mailto:Cuis-dev at lists.cuis.st>
>     https://lists.cuis.st/mailman/listinfo/cuis-dev
>
>
>
> -- 
> *Hernán Wilkinson
> Agile Software Development, Teaching & Coaching*
> *Phone: +54-011*-4893-2057
> *Twitter: @HernanWilkinson*
> *site: http://www.10Pines.com <http://www.10pines.com/>*
> Address: Alem 896, Floor 6, Buenos Aires, Argentina
>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.cuis.st/mailman/archives/cuis-dev/attachments/20230327/36c61d7a/attachment.htm>


More information about the Cuis-dev mailing list