[Cuis-dev] Multiple text model morph over the same model

Juan Vuletich juan at cuis.st
Sat Mar 22 13:54:41 PDT 2025


Hi Hilaire,

That's an interesting use case. Can you prepare and provide an example 
of doing this in the base image? We could use it as the basis on which 
to fix Cuis so it works.

Cheers,


On 3/22/2025 8:03 AM, Hilaire Fernandes via Cuis-dev wrote:
>
> In this demo,
>
> With one model, *three text model morph*s sync to the same model, but 
> *with two passives* (setters set to nil), I have this message 
> 'Caution! Contents were saved elsewhere....' warning message, which 
> does not make sense in this circumstance.
>
> The setters of the model is completely passive and the button action is:
>
> handleButtonClick
>     textModel scroller acceptContents.
>     self changed: #text
>
> To get the change propagated to all the views.
>
> The addition of the message #askBeforeDiscardingEdits: to the active 
> text model does not work. Only the model notifying #clearUserEdits 
> seems to work.
>
> Idea? Opinion?
>
> Thanks
>
>
>
> -- 
> http://mamot.fr/@drgeo


-- 
Juan Vuletich
cuis.st
github.com/jvuletich
researchgate.net/profile/Juan-Vuletich
independent.academia.edu/JuanVuletich
patents.justia.com/inventor/juan-manuel-vuletich
linkedin.com/in/juan-vuletich-75611b3
twitter.com/JuanVuletich

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.cuis.st/mailman/archives/cuis-dev/attachments/20250322/46416156/attachment-0001.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: image/png
Size: 182046 bytes
Desc: not available
URL: <http://lists.cuis.st/mailman/archives/cuis-dev/attachments/20250322/46416156/attachment-0001.png>


More information about the Cuis-dev mailing list