[Fwd: Issue 1571: automaticPlatformSettings preference]

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

[Fwd: Issue 1571: automaticPlatformSettings preference]

Alain Plantec-4


this preference is only used by SmalltalkImage>>setPlatformPreferences.
It was here to set some preferences depending on the platform.
It has not effect anymore since #soundStopWhenDone and #soundQuickStart are
completely ignored.
I suggest to remove automaticPlatformSettings preference.

What do you think ?

Alain



setPlatformPreferences
        "Set some platform specific preferences on system startup"
        | platform specs |
        Preferences automaticPlatformSettings ifFalse: [^self].
        platform := self platformName.
        specs := #(
                                        (soundStopWhenDone false)
                                        (soundQuickStart false)
                        ).
        platform = 'Win32' ifTrue:[
                specs := #(
                                        (soundStopWhenDone true)
                                        (soundQuickStart false)
                                )].
        platform = 'Mac OS' ifTrue:[
                specs := #(
                                        (soundStopWhenDone false)
                                        (soundQuickStart true)
                                )].
        specs do:[:tuple|
                Preferences setPreference: tuple first toValue: (tuple last == true).
        ].





_______________________________________________
Pharo-project mailing list
[hidden email]
http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project
Reply | Threaded
Open this post in threaded view
|

Re: [Fwd: Issue 1571: automaticPlatformSettings preference]

Stéphane Ducasse
may be we should use it :)
or we remove it.

Stef

On Dec 10, 2009, at 9:59 PM, Alain Plantec wrote:

>
>
> From: Alain Plantec <[hidden email]>
> Date: December 10, 2009 9:58:30 PM GMT+01:00
> To: [hidden email]
> Subject: Issue 1571: automaticPlatformSettings preference
> Reply-To: [hidden email]
>
>
> this preference is only used by SmalltalkImage>>setPlatformPreferences.
> It was here to set some preferences depending on the platform.
> It has not effect anymore since #soundStopWhenDone and #soundQuickStart are
> completely ignored.
> I suggest to remove automaticPlatformSettings preference.
>
> What do you think ?
>
> Alain
>
>
>
> setPlatformPreferences
> "Set some platform specific preferences on system startup"
> | platform specs |
> Preferences automaticPlatformSettings ifFalse: [^self].
> platform := self platformName.
> specs := #(
> (soundStopWhenDone false)
> (soundQuickStart false)
> ).
> platform = 'Win32' ifTrue:[
> specs := #(
> (soundStopWhenDone true)
> (soundQuickStart false)
> )].
> platform = 'Mac OS' ifTrue:[
> specs := #(
> (soundStopWhenDone false)
> (soundQuickStart true)
> )].
> specs do:[:tuple|
> Preferences setPreference: tuple first toValue: (tuple last == true).
> ].
>
>
>
>
>
>
> _______________________________________________
> Pharo-project mailing list
> [hidden email]
> http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project


_______________________________________________
Pharo-project mailing list
[hidden email]
http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project
Reply | Threaded
Open this post in threaded view
|

Re: [Fwd: Issue 1571: automaticPlatformSettings preference]

Henrik Sperre Johansen
Is there any time you do *not* want things set automatically for you
based on platform if it's needed?
I vote remove it.

Cheers,
Henry

On 10.12.2009 22:18, Stéphane Ducasse wrote:

> may be we should use it :)
> or we remove it.
>
> Stef
>
> On Dec 10, 2009, at 9:59 PM, Alain Plantec wrote:
>
>    
>>
>> From: Alain Plantec<[hidden email]>
>> Date: December 10, 2009 9:58:30 PM GMT+01:00
>> To: [hidden email]
>> Subject: Issue 1571: automaticPlatformSettings preference
>> Reply-To: [hidden email]
>>
>>
>> this preference is only used by SmalltalkImage>>setPlatformPreferences.
>> It was here to set some preferences depending on the platform.
>> It has not effect anymore since #soundStopWhenDone and #soundQuickStart are
>> completely ignored.
>> I suggest to remove automaticPlatformSettings preference.
>>
>> What do you think ?
>>
>> Alain
>>
>>
>>
>> setPlatformPreferences
>> "Set some platform specific preferences on system startup"
>> | platform specs |
>> Preferences automaticPlatformSettings ifFalse: [^self].
>> platform := self platformName.
>> specs := #(
>> (soundStopWhenDone false)
>> (soundQuickStart false)
>> ).
>> platform = 'Win32' ifTrue:[
>> specs := #(
>> (soundStopWhenDone true)
>> (soundQuickStart false)
>> )].
>> platform = 'Mac OS' ifTrue:[
>> specs := #(
>> (soundStopWhenDone false)
>> (soundQuickStart true)
>> )].
>> specs do:[:tuple|
>> Preferences setPreference: tuple first toValue: (tuple last == true).
>> ].
>>
>>
>>
>>
>>
>>
>> _______________________________________________
>> Pharo-project mailing list
>> [hidden email]
>> http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project
>>      
>
> _______________________________________________
> Pharo-project mailing list
> [hidden email]
> http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project
>
>
>    


_______________________________________________
Pharo-project mailing list
[hidden email]
http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project
Reply | Threaded
Open this post in threaded view
|

Re: [Fwd: Issue 1571: automaticPlatformSettings preference]

Alain Plantec-4
Henrik Sperre Johansen a écrit :
> Is there any time you do *not* want things set automatically for you
> based on platform if it's needed?
> I vote remove it.
>
> Cheers,
> Henry
>
>  
+1

Alain


_______________________________________________
Pharo-project mailing list
[hidden email]
http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project
Reply | Threaded
Open this post in threaded view
|

Re: [Fwd: Issue 1571: automaticPlatformSettings preference]

Stéphane Ducasse
remove it!

Stef

On Dec 11, 2009, at 6:33 AM, Alain Plantec wrote:

> Henrik Sperre Johansen a écrit :
>> Is there any time you do *not* want things set automatically for you
>> based on platform if it's needed?
>> I vote remove it.
>>
>> Cheers,
>> Henry
>>
>>
> +1
>
> Alain
>
>
> _______________________________________________
> Pharo-project mailing list
> [hidden email]
> http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project


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