[MCP] [Q] Color change notification

Ned Konz ned at bike-nomad.com
Tue Mar 18 17:02:45 UTC 2003


On Tuesday 18 March 2003 09:00 am, Bill Spight wrote:
> Dear Bob,
>
> Ned:
> > >> Of course, in Morph all changed does is invalidate the
> > >> rectangle. It's not the same as Object>>changed (i.e. it's not
> > >> a change notification).
>
> Bill:
> > >Then why in the world should Morph>>color: invalidate the
> > > rectangle?????
>
> Bob:
> > So that the morph will be redrawn with the new color.
>
> 1: If we're going to use #colorChanged, we could move the redrawing
> there.
>
> 2: Why not use #redraw ? Wouldn't something like that be clearer?

No, because you don't want to redraw right then; you just want to 
invalidate. There may be other changes between the point you changed 
the color (or layout) and the time you get to redraw, and you don't 
want to actually redraw every time.

-- 
Ned Konz
http://bike-nomad.com
GPG key ID: BEEA7EFE



More information about the Squeak-dev mailing list