<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<p><font size="4">Yes it is fine.</font></p>
<p><font size="4">I am wondering: when executing "PreferenceNG
initialize" in an image with vector graphics it seems to break
the image. I guess a race condition.</font></p>
<p><font size="4">To avoid this situation, I suggest you edit this
method as follow:</font></p>
<p><font size="4"><font face="monospace" color="#97082d">PreferenceNG>>initialize<br>
ThePreferences ifNil: [ThePreferences _ Dictionary new].<br>
...</font><br>
</font></p>
<p><font size="4">It will allow to add the new preferences from the
data array and reset the existing ones with the default values
from the array (this what happen when requesting a new
preference already in the system, it just updates the existing
one). A few limitation:</font></p>
<ul>
<li><font size="4">It will not migrate type of existing preference
(should be done by hand by inspecting the object or removing
the whole preference and initialize again), I prevent it by
purpose so a user does not mess up with the type. </font></li>
<li><font size="4">it will not remove deprecated preferences (the
ones not anymore in the data array). Should be removed by
hand.<br>
</font></li>
</ul>
<p>Hilaire<br>
</p>
<div class="moz-cite-prefix">Le 13/05/2022 à 22:42, Juan Vuletich
via Cuis-dev a écrit :<br>
</div>
<blockquote type="cite" cite="mid:627EC2AC.4000100@zoho.com">Hilaire,
please check that the use of Preference NG is reasonable.<br>
</blockquote>
<pre class="moz-signature" cols="72">--
GNU Dr. Geo
<a class="moz-txt-link-freetext" href="http://drgeo.eu">http://drgeo.eu</a>
<a class="moz-txt-link-freetext" href="http://blog.drgeo.eu">http://blog.drgeo.eu</a></pre>
</body>
</html>