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 |
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 <[hidden email]> 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 > |
Preferences does not exist as a class.
You could use STON. > On 28 Aug 2015, at 10:31, H. Hirzel <[hidden email]> 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 <[hidden email]> 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 >> > |
Yes, we need re-thing and improve Preference modelling and storage.
> On 28 Aug 2015, at 11:39, Sven Van Caekenberghe <[hidden email]> wrote: > > Preferences does not exist as a class. > > You could use STON. > >> On 28 Aug 2015, at 10:31, H. Hirzel <[hidden email]> 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 <[hidden email]> 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 >>> >> > > |
2015-08-28 11:49 GMT+02:00 Marcus Denker <[hidden email]>: 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
|
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 :
|
Free forum by Nabble | Edit this page |