[Cuis-dev] Preferennce save/load and actionMap

Luciano Notarfrancesco luchiano at gmail.com
Fri May 6 01:46:03 PDT 2022


Another way would be for tools to register to receive notifications for
*all* preference changes on the Preference class, and let the handler look
at the preference name and decide what to do (ignoring the event if the
tool doesn’t know the preference name). Preferences would notify changes by
doing something like ‘self class triggerEvent: #preferenceChanged with:
self’.

On Fri, 6 May 2022 at 3:24 PM Hilaire Fernandes <hilaire at drgeo.eu> wrote:

> Indeed.
>
> But works only when Preference instance with the same symbol already
> exists in the image.
> Le 05/05/2022 à 22:07, Luciano Notarfrancesco a écrit :
>
> You can avoid replacing the existing instances by iterating over the
> preferences you read from the file and setting their values on the existing
> prefeences.
>
> --
> GNU Dr. Geohttp://drgeo.euhttp://blog.drgeo.eu
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.cuis.st/mailman/archives/cuis-dev/attachments/20220506/c8b46872/attachment.htm>


More information about the Cuis-dev mailing list