<div><div dir="auto" style="border-color:rgb(0,0,0);color:rgb(0,0,0)">Hi Ken,</div><div dir="auto" style="border-color:rgb(0,0,0);color:rgb(0,0,0)">We don’t want to check a value is of the correct type before setting it, we just want to specify the type so that a GUI tool for browsing and editing preferences can build appropriate widgets for each preference (a drop down list, a toggle button, etc). So the setter thing doesn’t make sense to me.</div><div dir="auto" style="border-color:rgb(0,0,0);color:rgb(0,0,0)"><span style="border-color:rgb(0,0,0);color:rgb(0,0,0)"><br></span></div><div dir="auto" style="border-color:rgb(0,0,0);color:rgb(0,0,0)"><span style="border-color:rgb(0,0,0);color:rgb(0,0,0)">The dictionary as a class variable is a good idea to consider, tho, since it avoids creating a special PreferrenceDictionary class.</span><br></div><div dir="auto" style="border-color:rgb(0,0,0);color:rgb(0,0,0)"><br></div><div dir="auto" style="border-color:rgb(0,0,0);color:rgb(0,0,0)">Wish you a speedy recovery!</div></div><div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Fri, 29 Apr 2022 at 2:24 AM ken.dickey--- via Cuis-dev <<a href="mailto:cuis-dev@lists.cuis.st">cuis-dev@lists.cuis.st</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-style:solid;padding-left:1ex;border-left-color:rgb(204,204,204)">The simplified code -- just for completeness.<br>
<br>
Note: MyPref>>value:<br>
<br>
Cheers,<br>
-KenD<br>
<br>
-- <br>
Cuis-dev mailing list<br>
<a href="mailto:Cuis-dev@lists.cuis.st" target="_blank">Cuis-dev@lists.cuis.st</a><br>
<a href="https://lists.cuis.st/mailman/listinfo/cuis-dev" rel="noreferrer" target="_blank">https://lists.cuis.st/mailman/listinfo/cuis-dev</a><br>
</blockquote></div></div>