STON is the way to go to save preferences. But I do not have free cycles. Stef Le 28/8/15 11:55, Thierry Goubier a écrit :
2015-08-28 11:49 GMT+02:00 Marcus Denker <marcus.denker@inria.fr <mailto:marcus.denker@inria.fr>>:
Yes, we need re-thing and improve Preference modelling and storage.
I very strongly agree... Anything which prevents failure on non-present class, or settings selector change, gets my vote.
Thierry
> On 28 Aug 2015, at 11:39, Sven Van Caekenberghe <sven@stfx.eu <mailto:sven@stfx.eu>> wrote: > > Preferences does not exist as a class. > > You could use STON. > >> On 28 Aug 2015, at 10:31, H. Hirzel <hannes.hirzel@gmail.com <mailto:hannes.hirzel@gmail.com>> wrote: >> >> P.S. And BTW besides SIXX what options do I have to transfer >> preferences from one Pharo 4.0 image to another? >> >> On 8/28/15, H. Hirzel <hannes.hirzel@gmail.com <mailto:hannes.hirzel@gmail.com>> wrote: >>> Hello >>> >>> How would I write the following SIXX example in Pharo 4.0? >>> >>> example4 >>> "SixxExamples example4" >>> "Save and load Preferences data" >>> >>> | preferences | >>> preferences := Preferences allPreferenceObjects sixxString. >>> preferences := Object readSixxFrom: preferences. >>> ^preferences inspect. >>> >>> >>> Preferences is marked red. >>> >>> Kind regards >>> Hannes >>> >> > >