<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<p><font size="4">Hi Luciano,</font></p>
<p><font size="4">Was busy elsewhere, sorry it took so long, but I
wanted to take the needed time to respond appropriately.<br>
</font></p>
<p><font size="4">So if I interpret correctly, we should have two
classes: PreferenceDictionary and Preferences.<br>
</font></p>
<p><font size="4">We move most of the PreferenceNG general behavior
in PreferenceDictionary class, the behavior specific to the
system preferences is moved to the Preferences class (data
preference and related behavior when a system preference is
changed).<br>
</font></p>
<p><font size="4">Preferences is then a subclass of
PreferenceDictionary, to inherit the general behavior to a
preference.</font></p>
<p><font size="4">The "ThePreference" dictionary class variable we
have in PreferenceNG is changed to an instance variable of
PreferenceDictionary: System preferences and application
preference use their own dictionary.<br>
</font></p>
<p><font size="4"> Likely Preferences class is turned as a
singleton, to avoid multiple instance of Preferences.</font></p>
<p><font size="4">Is it more or less what you have in mind?<br>
</font></p>
<p>Thanks</p>
<p>Hilaire<br>
</p>
<div class="moz-cite-prefix">Le 10/06/2022 à 23:17, Luciano
Notarfrancesco a écrit :<br>
</div>
<blockquote type="cite"
cite="mid:CAL5GDyoStPnx1QxiXcLW-ozgAAZahDE56JeZbWD8bBMpns51Pw@mail.gmail.com">
<div dir="auto">Hi Hilaire,</div>
<div dir="auto"><br>
</div>
<div dir="auto">I was thinking more on the lines of moving the
methods in PreferenceNG class to some new class, say
PreferenceDictionary, and then having a global instance
Preferences for the base image, and another instance of
PreferenceDictionary for DrGeo. My first idea before giving it
much thought was to add a new instance variable to CodePackage
but now that seems totally unnecessary.</div>
<div dir="auto"><br>
</div>
<div dir="auto"><br>
</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>