[Cuis-dev] [RCF] Morph by reuse
Hilaire Fernandes
hfern at free.fr
Sun Jul 13 03:09:39 PDT 2025
Hi folks,
I request for comment, for the chapter on "Design morph by reuse",
regarding designing morph by reuse (no drawnOn: method rewrite).
In that specific circumstance (design implying overriding drawOn: is
dealt in a separate chapter), from which morph are you subclassing?
I have identified[1] two strong candidates, LayoutMorph and
PluggableScrollPane, whose subclasses do not need to rewrite drawOn: and
generic enough for reuse.
Opinion?
Thanks
Hilaire
[1] By asking itself, wtih the Cuis-Smalltalk-UI package loaded:
|hallOfFame |
hallOfFame := Morph allSubclasses collect: [:each |
Array with: each with: each subclasses size].
hallOfFame := hallOfFame sort: [:array1 :array2 | array1 second > array2 second]
--
http://mamot.fr/@drgeo
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.cuis.st/mailman/archives/cuis-dev/attachments/20250713/8a5bb0d8/attachment-0001.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Cc6D2LHI5BSkd5gw.png
Type: image/png
Size: 80814 bytes
Desc: not available
URL: <http://lists.cuis.st/mailman/archives/cuis-dev/attachments/20250713/8a5bb0d8/attachment-0001.png>
More information about the Cuis-dev
mailing list