[squeak-dev] Morphs and Data Question

Eric Gade eric.gade at gmail.com
Sun Oct 25 14:44:12 UTC 2020


Hi all,

I have a quick question that is perhaps very elementary. What is the best
way to design my Morph subclasses so that they "react" to changes on their
models? For example, if I have some data related model with text that
updates and I want the "view" (the Morph) to update whenever this occurs?
In my own quick code I've always just implemented a `step` method that
checks for data on the model updates, but is that too brutal and
inefficient?

Thanks,

-- 
Eric
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.squeakfoundation.org/pipermail/squeak-dev/attachments/20201025/3bd79b43/attachment.html>


More information about the Squeak-dev mailing list