<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<p>HI Gerald, <br>
</p>
<div class="moz-cite-prefix">Le 30/05/2022 à 00:05, Gerald Klix via
Cuis-dev a écrit :<br>
</div>
<blockquote type="cite"
cite="mid:AD7F9B78-0092-4D49-9775-AC44609174F8@getmailspring.com">It's
difficult to install preferences for a package, at least without a
special <font style="font-family:monospace">CodePackage</font> subclass.
<div>We need something like <font style="font-family:monospace">PreferenceNG
at: #somePreferenceSymbol ifAbsentInstall: [ ... ]</font></div>
</blockquote>
<p>Thinking about your comment, we may find useful a #at:ifAbsent:
message or something like that. Just to check if a preference
already exist.</p>
<p><b>Note.</b> To created or update a preference you don't need to
check its existence:</p>
<blockquote>
<p><i>Modus Operendi</i><i><br>
</i><i>- To create a Preference, invoke the instance creation
class method (Preference
name:description:category:type:value:). The new preference is
automatically remembered. If a preference with same name
already exist, its instance is updated with the new provided
data and its instance returned.</i></p>
<p>PreferenceNG comment<br>
</p>
</blockquote>
<p><br>
</p>
<p>As I am going to use PreferenceNG for the numerous DrGeo
preference, I will learn how to more appropriately extend a bit
the protocol.<br>
</p>
<p>Hilaire<br>
</p>
--
<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>