<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body>
<p>Hi Hilaire,</p>
<p>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.</p>
<p>Thanks,</p>
<div class="moz-cite-prefix">On 28/07/2025 6:00 AM, Hilaire
Fernandes via Cuis-dev wrote:<br>
</div>
<blockquote type="cite"
cite="mid:78f24785-0407-4b0e-b8e8-8a99b28adf43@free.fr">
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<p><font size="4">Hi, <br>
</font></p>
<p><font size="4">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:</font></p>
<p><img moz-do-not-send="false"
src="cid:part1.9oOksiBu.3bDhP0ma@cuis.st" alt="" width="411"
height="193" class=""></p>
<p><br>
</p>
<p>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. <br>
</p>
<pre>entry: anEntry
textMorph hasUnacceptedEdits: false.
response := anEntry asString.
self changed: #response.
textMorph hasUnacceptedEdits: true.</pre>
<p>Any explanation?<br>
</p>
Thanks<br>
<pre class="moz-signature" cols="72">--
<a class="moz-txt-link-freetext" href="http://mamot.fr/@drgeo"
moz-do-not-send="true">http://mamot.fr/@drgeo</a></pre>
<br>
<fieldset class="moz-mime-attachment-header"></fieldset>
</blockquote>
<pre class="moz-signature" cols="72">--
Juan Vuletich
<a class="moz-txt-link-abbreviated" href="http://www.cuis.st">www.cuis.st</a>
github.com/jvuletich
researchgate.net/profile/Juan-Vuletich
independent.academia.edu/JuanVuletich
patents.justia.com/inventor/juan-manuel-vuletich</pre>
</body>
</html>