SixxExamples class >> example 4 . Preferences in Pharo 4.0

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
6 messages Options
Reply | Threaded
Open this post in threaded view
|

SixxExamples class >> example 4 . Preferences in Pharo 4.0

Hannes Hirzel
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

Reply | Threaded
Open this post in threaded view
|

Re: SixxExamples class >> example 4 . Preferences in Pharo 4.0

Hannes Hirzel
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
>

Reply | Threaded
Open this post in threaded view
|

Re: SixxExamples class >> example 4 . Preferences in Pharo 4.0

Sven Van Caekenberghe-2
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
>>
>


Reply | Threaded
Open this post in threaded view
|

Re: SixxExamples class >> example 4 . Preferences in Pharo 4.0

Marcus Denker-4
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
>>>
>>
>
>


Reply | Threaded
Open this post in threaded view
|

Re: SixxExamples class >> example 4 . Preferences in Pharo 4.0

Thierry Goubier


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
 



> 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
>>>
>>
>
>



Reply | Threaded
Open this post in threaded view
|

Re: SixxExamples class >> example 4 . Preferences in Pharo 4.0

stepharo
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 <[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
 



> 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
>>>
>>
>
>