<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<div class="moz-cite-prefix">Le 28/04/2022 à 05:50, Mariano Montone
via Cuis-dev a écrit :<br>
</div>
<blockquote type="cite"
cite="mid:7422e0c7-f0b5-d3dc-202b-b65070c52c83@gmail.com">
<div class="moz-cite-prefix">I'm looking at Squeak model for
preferences and they have something similar to what I suggest.</div>
</blockquote>
<p>Are sure about that? Is it not Pharo Preference system you are
referring to? Because what I see in Squeak is the same things as
in Cuis. Cuis obviously inherited from the Squeak system. The only
notable difference I see is the use of pragma to annotate methods
providing Preference.</p>
<p>I have used extensively the Pharo preference system for DrGeo
preference. It is very capable, a bit complex.<br>
</p>
<img moz-do-not-send="false"
src="cid:part1.xr2jQdeT.Zv5szMyP@drgeo.eu" alt="" width="688"
height="655">
<p>Hilaire<br>
</p>
<blockquote type="cite"
cite="mid:7422e0c7-f0b5-d3dc-202b-b65070c52c83@gmail.com">
<div class="moz-cite-prefix"><br>
</div>
<div class="moz-cite-prefix">They have a 'type' instance variable
in Preference, that they assign to a Symbol (I would use
Smalltalk classes and objects instead).</div>
<div class="moz-cite-prefix"><br>
</div>
<div class="moz-cite-prefix">And then, they have a hierarchy, but
not for Preference or preference types, but for views.</div>
<div class="moz-cite-prefix"><br>
</div>
<div class="moz-cite-prefix">And instead of a visitor, they use a
registry, a mapping from preference type -> preference view
class (PreferenceViewRegistry class).</div>
<div class="moz-cite-prefix"><br>
</div>
<div class="moz-cite-prefix">Perhaps we can get some ideas from
Squeak model.<br>
</div>
<div class="moz-cite-prefix"><br>
</div>
<div class="moz-cite-prefix">Cheers,</div>
<div class="moz-cite-prefix"><br>
</div>
<div class="moz-cite-prefix">Mariano</div>
</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>