[Cuis-dev] The Preference model

Hilaire Fernandes hilaire at drgeo.eu
Thu Apr 28 02:29:32 PDT 2022


Le 28/04/2022 à 05:50, Mariano Montone via Cuis-dev a écrit :
> I'm looking at Squeak model for preferences and they have something 
> similar to what I suggest.

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.

I have used extensively the Pharo preference system for DrGeo 
preference. It is very capable, a bit complex.

Hilaire

>
> They have a 'type' instance variable in Preference, that they assign 
> to a Symbol (I would use Smalltalk classes and objects instead).
>
> And then, they have a hierarchy, but not for Preference or preference 
> types, but for views.
>
> And instead of a visitor, they use a registry, a mapping from 
> preference type -> preference view class (PreferenceViewRegistry class).
>
> Perhaps we can get some ideas from Squeak model.
>
> Cheers,
>
> Mariano

-- 
GNU Dr. Geo
http://drgeo.eu
http://blog.drgeo.eu
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.cuis.st/mailman/archives/cuis-dev/attachments/20220428/8b755591/attachment-0001.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Capture%20d%E2%80%99%C3%A9cran%20de%202022-04-28%2011-27-45.png
Type: image/png
Size: 26793 bytes
Desc: not available
URL: <http://lists.cuis.st/mailman/archives/cuis-dev/attachments/20220428/8b755591/attachment-0001.png>


More information about the Cuis-dev mailing list