<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<p><font size="4">Hi Mark, </font></p>
<p><font size="4">Often, we subclass more than necessary.</font></p>
<p><font size="4">Your TODO exercise app could be written without
the need to subclass.</font></p>
<p><font size="4">I will use a SystemWindow instance where there is
already a LayoutMorph instance installed, ready to receive your
widget installments.</font></p>
<p><font size="4">I will make the TodoApp a subclass of Object. It
will be your Presenter object knowing about the Model and the
View (your SystemWindows instance) and it will handle the events
of the widget you have installed in the SystemWindow instance.<br>
</font></p>
<p><font size="4">You will subclass LayoutMoprh if you need to add
some special behavior and make a new kind of widget of it.
Otherwise it is wise to not do it, it adds unnecessary
complexity.</font></p>
<p><font size="4">Hilaire</font></p>
<p><font size="4"><br>
</font></p>
<div class="moz-cite-prefix">Le 08/08/2024 à 13:06, Mark Volkmann
via Cuis-dev a écrit :<br>
</div>
<blockquote type="cite"
cite="mid:CAFfRWnUwBKXvwZT4D5LAGTJrWUP7p8qyYM=dHOntSBUgQ8ox7Q@mail.gmail.com">
<div>My class is a subclass of <font face="monospace">LayoutMorph</font>,
so I'm not sending a <font face="monospace">#new*</font>
message to <font face="monospace">LayoutMorph</font> directly.
I'm sending <font face="monospace">#new</font> to my own class.
</div>
</blockquote>
<pre class="moz-signature" cols="72">--
GNU Dr. Geo
<a class="moz-txt-link-freetext" href="http://gnu.org/s/dr-geo/">http://gnu.org/s/dr-geo/</a>
<a class="moz-txt-link-freetext" href="http://gnu-drgeo.blogspot.com/">http://gnu-drgeo.blogspot.com/</a></pre>
</body>
</html>