Gary Chambers wrote:
> I'll have a think. Some theme settings can currently be set (manually) on a 
> per theme basis.
> Would be nice to handle that, though the pragma route suggests that a static 
> facade would be needed to delegate to the defaults for the current theme...
> 
> I'd see something like
> 
> X class>>myPreference
>     <preference: 'Readable name' type: #Boolean set: #myPreference: default: 
> #defaultMyPreference description: 'Helpful text'>
>     ^ myPreference ifNil: [myPreference := self defaultMyPreference]

In Sophie we have a Preference system supporting user and system level 
preferences as well as preference definitions similar to the one above.

In my ySqueak experiments I extended that so classes can register as 
"preference provider" and also as listeners to preference changes.

Michael

_______________________________________________
Pharo-project mailing list
[email protected]
http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project

Reply via email to