[Cuis-dev] LayoutMorph newColumn
Hilaire Fernandes
hfern at free.fr
Sat Aug 10 07:17:55 PDT 2024
Hi Mark,
Often, we subclass more than necessary.
Your TODO exercise app could be written without the need to subclass.
I will use a SystemWindow instance where there is already a LayoutMorph
instance installed, ready to receive your widget installments.
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.
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.
Hilaire
Le 08/08/2024 à 13:06, Mark Volkmann via Cuis-dev a écrit :
> My class is a subclass of LayoutMorph, so I'm not sending a #new*
> message to LayoutMorph directly. I'm sending #new to my own class.
--
GNU Dr. Geo
http://gnu.org/s/dr-geo/
http://gnu-drgeo.blogspot.com/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.cuis.st/mailman/archives/cuis-dev/attachments/20240810/57f66636/attachment.htm>
More information about the Cuis-dev
mailing list