[Cuis-dev] The Preference model
Mariano Montone
marianomontone at gmail.com
Sat Apr 30 09:56:30 PDT 2022
Hi Hilaire,
it looks good to me!
I think you need some class side method for the tools to access the list
of preferences:
NGPreference class>>preferences
^ ThePreferences
El 30/4/22 a las 10:27, Hilaire Fernandes via Cuis-dev escribió:
>
> A first implementation following the ideas exchanged there.
>
> It is a one class approach (hi Ken), with an additional type attribute
> (hi Mariano), without defaultValue attribute, it is not used in the
> base system
>
> It is possible to reset to Cuis base preferences, or to import the
> existing Preferences from the old system, but the type is not good, so
> only for testing.
>
> A preference is created and auto-kept when instantiating it.
>
> Access to Preference instance as dictionary: PreferenceNG at:
> #biggerCursors. Access to preference value PreferenceNG at:
> #biggerCursors ormessage send PreferenceNG biggerCursors
>
> Things to do, conform the value change to the type when type is not a
> class. Third party editor level right?
>
> Each occurrence in system of Preferences biggerCursors should be
> replaced by PreferenceNG biggerCursors (to become just Preference or
> even Preference*s*). Message send goes by a DNU so may be system use
> should be PreferenceNG of: #biggerCursors
>
> Hilaire
>
> --
> 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/20220430/6c70ec10/attachment-0001.htm>
More information about the Cuis-dev
mailing list