[Cuis-dev] StringRequestMorph extension
Juan Vuletich
juan at cuis.st
Mon Jul 28 08:53:01 PDT 2025
Hi Hilaire,
Please share the code and any instructions so I can play with this. I
need to run the actual code and see what's happening so I can understand
when / why you need to toggle the hasUnacceptedEdits attribute.
Thanks,
On 28/07/2025 6:00 AM, Hilaire Fernandes via Cuis-dev wrote:
>
> Hi,
>
> For the Art of Morph book, I have this example where
> StringRequestMorph is extended as a FileRequesstMorph. The user can
> optionally selects a file from the file selector panel below:
>
>
> When a file is selected, its path is set on the TextModelMorph above.
> However to get the #response event to be properly handled and the text
> model morph entry updated, I have to toggle the hasUnacceptedEdits
> attribute, this is obscure.
>
> entry: anEntry
> textMorph hasUnacceptedEdits: false.
> response := anEntry asString.
> self changed: #response.
> textMorph hasUnacceptedEdits: true.
>
> Any explanation?
>
> Thanks
> --
> http://mamot.fr/@drgeo
>
--
Juan Vuletich
www.cuis.st
github.com/jvuletich
researchgate.net/profile/Juan-Vuletich
independent.academia.edu/JuanVuletich
patents.justia.com/inventor/juan-manuel-vuletich
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.cuis.st/mailman/archives/cuis-dev/attachments/20250728/87223ecb/attachment-0001.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: ch02-FileRequestMorph.png
Type: image/png
Size: 19888 bytes
Desc: not available
URL: <http://lists.cuis.st/mailman/archives/cuis-dev/attachments/20250728/87223ecb/attachment-0001.png>
More information about the Cuis-dev
mailing list