[MCP] [Q] Color change notification
yampa
yampa at mindspring.com
Sun Mar 16 17:27:57 UTC 2003
----- Original Message -----
From: <diegogomezdeck at consultar.com>
To: <squeak-dev at lists.squeakfoundation.org>
Sent: Sunday, March 16, 2003 10:21 AM
Subject: [MCP] [Q] Color change notification
>
> We are thinking about refactor this code with change nofification. The
> idea is to add in Morph a method called #onColorChange.
>
> Morph>>color: aColor
> "change the receiver's color"
>
> <... old code...>
>
> self onColorChange.
>
>
> Morph>>onColorChange
> "the receiver's color was just changed."
>
> ^ self
>
, eventually, send the previous and the new color.)
>
> What do you think?
>
What about triggering a #colorChanged event in the color: method? (and take
out "self changed"). Then any morph can express an interest in recieving
color change events from the morph.
More information about the Squeak-dev
mailing list
|