[Cuis] Implementors of initWithContents:font:emphasis:

Dan Norton dnorton at mindspring.com
Tue Sep 8 16:08:59 CDT 2015


Hi Hannes,

I get it. There are lots of sibling morphs. RectangleMorph doesn't need font or emphasis for 
sure.

And, adding a class to the hierarchy simply to contain the method would not be desirable 
either.

Geez who came up with this idea, anyway?

 - Dan

On 8 Sep 2015 at 19:24, H. Hirzel wrote:

> Hi Dan
> 
> No. The three morphs you mention all have instance variables
> 
>    font emphasis
> 
> whereas the sibling morphs do not have these variables neither does
> Morph.
> 
> So the reason of not doing it is that we do not want these
> instance
> variables to be in the other Morphs where they are not used.
> 
> --Hannes
> 
> 
> On 9/8/15, Dan Norton <dnorton at mindspring.com> wrote:
> > Greetings,
> >
> > The following implement #initWithContents:font:emphasis:
> identically:
> >
> > MinimalStringMorph
> > OneLineEditorMorph
> > StringMorph
> >
> > and they all inherit from:
> >
> >     Morph
> >         RectangleLikeMorph
> >
> > So, refactoring seems to be in order, maybe by pulling
> > #initWithContents:font:emphasis: up
> > into Morph. What do you think?
> >
> >  - Dan
> >
> > _______________________________________________
> > Cuis mailing list
> > Cuis at jvuletich.org
> > http://jvuletich.org/mailman/listinfo/cuis_jvuletich.org
> >
> 
> _______________________________________________
> Cuis mailing list
> Cuis at jvuletich.org
> http://jvuletich.org/mailman/listinfo/cuis_jvuletich.org


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://jvuletich.org/pipermail/cuis_jvuletich.org/attachments/20150908/4a2b6e23/attachment-0004.html>


More information about the Cuis mailing list