[Cuis-dev] dependency mechanism for TextModelMorph
Mark Volkmann
r.mark.volkmann at gmail.com
Sun Mar 23 07:53:10 PDT 2025
As far as I can tell, TextModel morph does not send #changed: every time
its value changes, so that prevents me from listening for updates. I see
that the TextModel method actualContents: does send #changed:, but that is
not invoked on every change to a TextModelMorph even when it is configured
with acceptOnAny: true.
On Sun, Mar 23, 2025 at 9:38 AM <ken.dickey at whidbey.com> wrote:
> On 2025-03-23 06:35, Mark Volkmann via Cuis-dev wrote:
>
> > ...
> > myTextModelMorph addDependent: self.
> ..
> >
> > I have a few questions.
> > - Are there reasons why I should not want this ability?
>
> Generally, Morphs are Views and update to reflect changes in an
> underlying Model.
>
> A Morph can be a Model if sensible.
>
> > - Would it be better to listen for changes on the underlying TextModel?
>
> IMHO, yes.
>
> $0.02,
> -KenD
>
--
R. Mark Volkmann
Object Computing, Inc.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.cuis.st/mailman/archives/cuis-dev/attachments/20250323/685bb360/attachment.htm>
More information about the Cuis-dev
mailing list