Morphs & Models question

Kevin Fisher kgf at golden.net
Fri Oct 12 12:07:08 UTC 2001


On Thu, Oct 11, 2001 at 08:16:59PM -0700, Ned Konz wrote:
[snip]
> 
> What kind of Morph are you talking about? Are you just referring to 
> subclasses of MorphicModel? Outside of these, there is no explicit connection 
> between a separate model object and a Morph, so you could do things any way 
> you wanted.


Just a generic Morph...I think in my experiment I subclassed from a 
RectangleMorph and changed the #delete method to emit changes.


> 
> > Is it unreasonable to think that this could be done better with the
> > dependency mechanism instead?  
> 
> There are a number of calls to the model that expect a return value, so a 
> pure notification wouldn't work in all cases. In this one case (deleting the 
> Morph) it could work.


I understand now... :)  perhaps I was getting a little carried
away with the dependency stuff (but it is so tempting, since it's so 
useful!).

Thanks Ned!

> 
> -- 
> Ned Konz
> currently: Stanwood, WA
> email:     ned at bike-nomad.com
> homepage:  http://bike-nomad.com
> 
> 




More information about the Squeak-dev mailing list