The preference is there. I see it in the inspector which opens on
World > help... > preferences... I canged it using an inspect, but it was not honoured. Any ideas why? Is it the preferred way to post bug reports to this list, by the way? A UI for setting the preferences would be great IMO. Cheers, Bernhard |
Hi Bernhard,
Bernhard Pieber wrote: > The preference is there. I see it in the inspector which opens on > World > help... > preferences... I canged it using an inspect, but it > was not honoured. Any ideas why? Yes. You need to do InputSensor swapMouseButtons: true . Please look at this method to see why. Some preferences are a bit "special" and setting the value in the Preferences dictionary is not enough. > > Is it the preferred way to post bug reports to this list, by the way? So far, yes. At some time it might make sense to ask if would it be ok to use Mantis for Cuis and other Squeak derivatives, or if a Cuis specific bug tracker is needed. > > A UI for setting the preferences would be great IMO. > > Cheers, > Bernhard Cheers, Juan Vuletich |
Am 11.07.2009 um 23:51 schrieb Juan Vuletich:
> Yes. You need to do InputSensor swapMouseButtons: true . Please look > at this method to see why. Some preferences are a bit "special" and > setting the value in the Preferences dictionary is not enough. Thanks. Now I see. Hmm, doesn't that make the Preferences inspector quite useless for these preferences? Cheers, Bernhard |
Bernhard Pieber wrote:
> Am 11.07.2009 um 23:51 schrieb Juan Vuletich: >> Yes. You need to do InputSensor swapMouseButtons: true . Please look >> at this method to see why. Some preferences are a bit "special" and >> setting the value in the Preferences dictionary is not enough. > Thanks. Now I see. Hmm, doesn't that make the Preferences inspector > quite useless for these preferences? Yes... :( Cheers, Juan Vuletich |
On 13.07.2009, at 04:41, Juan Vuletich wrote: > Bernhard Pieber wrote: >> Am 11.07.2009 um 23:51 schrieb Juan Vuletich: >>> Yes. You need to do InputSensor swapMouseButtons: true . Please >>> look at this method to see why. Some preferences are a bit >>> "special" and setting the value in the Preferences dictionary is >>> not enough. >> Thanks. Now I see. Hmm, doesn't that make the Preferences inspector >> quite useless for these preferences? > > Yes... :( Err, you can register a method to be called whenever a preference is changed. - Bert - |
Bert Freudenberg wrote:
> > On 13.07.2009, at 04:41, Juan Vuletich wrote: > >> Bernhard Pieber wrote: >>> Am 11.07.2009 um 23:51 schrieb Juan Vuletich: >>>> Yes. You need to do InputSensor swapMouseButtons: true . Please >>>> look at this method to see why. Some preferences are a bit >>>> "special" and setting the value in the Preferences dictionary is >>>> not enough. >>> Thanks. Now I see. Hmm, doesn't that make the Preferences inspector >>> quite useless for these preferences? >> >> Yes... :( > > > Err, you can register a method to be called whenever a preference is > changed. > > - Bert - the preference, you'd do 'self preferenceValue: true'. Cheers, Juan Vuletich |
On 16.07.2009, at 02:47, Juan Vuletich wrote: > Bert Freudenberg wrote: >> >> On 13.07.2009, at 04:41, Juan Vuletich wrote: >> >>> Bernhard Pieber wrote: >>>> Am 11.07.2009 um 23:51 schrieb Juan Vuletich: >>>>> Yes. You need to do InputSensor swapMouseButtons: true . Please >>>>> look at this method to see why. Some preferences are a bit >>>>> "special" and setting the value in the Preferences dictionary is >>>>> not enough. >>>> Thanks. Now I see. Hmm, doesn't that make the Preferences >>>> inspector quite useless for these preferences? >>> >>> Yes... :( >> >> >> Err, you can register a method to be called whenever a preference >> is changed. >> >> - Bert - > Right! In this case instead of setting the 'value' instance variable > in the preference, you'd do 'self preferenceValue: true'. > > Cheers, > Juan Vuletich No, what I meant is that even if you change a preference in the preferences dialog, a method can be executed to make all adjustments necessary. In fact, in my image the #swapMouseButtons preference does inform InputSensor: (Preferences preferenceAt: #swapMouseButtons) longPrintString 'name: #swapMouseButtons value: false defaultValue: false helpString: ''if true, swaps mouse buttons 2 and 3'' localToProject: false categoryList: #(#general) changeInformee: InputSensor changeSelector: #installMouseDecodeTable viewRegistry: a PreferenceViewRegistry ' - Bert - |
>
> On 16.07.2009, at 02:47, Juan Vuletich wrote: > >> Bert Freudenberg wrote: >>> >>> On 13.07.2009, at 04:41, Juan Vuletich wrote: >>> >>>> Bernhard Pieber wrote: >>>>> Am 11.07.2009 um 23:51 schrieb Juan Vuletich: >>>>>> Yes. You need to do InputSensor swapMouseButtons: true . Please >>>>>> look at this method to see why. Some preferences are a bit >>>>>> "special" and setting the value in the Preferences dictionary is >>>>>> not enough. >>>>> Thanks. Now I see. Hmm, doesn't that make the Preferences >>>>> inspector quite useless for these preferences? >>>> >>>> Yes... :( >>> >>> >>> Err, you can register a method to be called whenever a preference >>> is changed. >>> >>> - Bert - >> Right! In this case instead of setting the 'value' instance variable >> in the preference, you'd do 'self preferenceValue: true'. >> >> Cheers, >> Juan Vuletich > > > No, what I meant is that even if you change a preference in the > preferences dialog, a method can be executed to make all adjustments > necessary. In fact, in my image the #swapMouseButtons preference does > inform InputSensor: > > (Preferences preferenceAt: #swapMouseButtons) longPrintString > 'name: #swapMouseButtons > value: false > defaultValue: false > helpString: ''if true, swaps mouse buttons 2 and 3'' > localToProject: false > categoryList: #(#general) > changeInformee: InputSensor > changeSelector: #installMouseDecodeTable > viewRegistry: a PreferenceViewRegistry > ' > > - Bert - Cuis does not include the preferences dialog. That's why we are talking about the inspector. Cheers, Juan Vuletich |
In reply to this post by Juan Vuletich-4
Ah, I didn't know that. Thanks!
Cheers, Bernhard Am 16.07.2009 um 02:47 schrieb Juan Vuletich: > Bert Freudenberg wrote: >> On 13.07.2009, at 04:41, Juan Vuletich wrote: >>> Bernhard Pieber wrote: >>>> Thanks. Now I see. Hmm, doesn't that make the Preferences >>>> inspector quite useless for these preferences? >> >> Yes... :( > Err, you can register a method to be called whenever a preference is > changed. Right! In this case instead of setting the 'value' instance variable in the preference, you'd do 'self preferenceValue: true'. |
In reply to this post by Juan Vuletich-4
Am 16.07.2009 um 14:41 schrieb [hidden email]:
> Cuis does not include the preferences dialog. That's why we are > talking > about the inspector. It would be really cool to have one, though. ;-) Cheers, Bernhard |
In reply to this post by Juan Vuletich-4
2009/7/16 <[hidden email]>:
>> >> On 16.07.2009, at 02:47, Juan Vuletich wrote: >> >>> Bert Freudenberg wrote: >>>> >>>> On 13.07.2009, at 04:41, Juan Vuletich wrote: >>>> >>>>> Bernhard Pieber wrote: >>>>>> Am 11.07.2009 um 23:51 schrieb Juan Vuletich: >>>>>>> Yes. You need to do InputSensor swapMouseButtons: true . Please >>>>>>> look at this method to see why. Some preferences are a bit >>>>>>> "special" and setting the value in the Preferences dictionary is >>>>>>> not enough. >>>>>> Thanks. Now I see. Hmm, doesn't that make the Preferences >>>>>> inspector quite useless for these preferences? >>>>> >>>>> Yes... :( >>>> >>>> >>>> Err, you can register a method to be called whenever a preference >>>> is changed. >>>> >>>> - Bert - >>> Right! In this case instead of setting the 'value' instance variable >>> in the preference, you'd do 'self preferenceValue: true'. >>> >>> Cheers, >>> Juan Vuletich >> >> >> No, what I meant is that even if you change a preference in the >> preferences dialog, a method can be executed to make all adjustments >> necessary. In fact, in my image the #swapMouseButtons preference does >> inform InputSensor: >> >> (Preferences preferenceAt: #swapMouseButtons) longPrintString >> 'name: #swapMouseButtons >> value: false >> defaultValue: false >> helpString: ''if true, swaps mouse buttons 2 and 3'' >> localToProject: false >> categoryList: #(#general) >> changeInformee: InputSensor >> changeSelector: #installMouseDecodeTable >> viewRegistry: a PreferenceViewRegistry >> ' >> >> - Bert - > > Cuis does not include the preferences dialog. That's why we are talking > about the inspector. > oh, then you might try to integrate a new preference system, like someone proposed - with pragmas and other stuff. > Cheers, > Juan Vuletich > > > > -- Best regards, Igor Stasenko AKA sig. |
Igor Stasenko wrote:
> 2009/7/16 <[hidden email]>: > >> Cuis does not include the preferences dialog. That's why we are talking >> about the inspector. >> >> > > oh, then you might try to integrate a new preference system, like > someone proposed - with pragmas and other stuff New preference system? Do you have any pointers? (Just curious...) Cheers, Juan Vuletich |
2009/7/17 Juan Vuletich <[hidden email]>:
> Igor Stasenko wrote: >> >> 2009/7/16 <[hidden email]>: >> >>> >>> Cuis does not include the preferences dialog. That's why we are talking >>> about the inspector. >>> >>> >> >> oh, then you might try to integrate a new preference system, like >> someone proposed - with pragmas and other stuff > > New preference system? Do you have any pointers? (Just curious...) > http://lists.gforge.inria.fr/pipermail/pharo-project/2009-March/006204.html (there is also some more, try searching a pharo/squeak-dev mail archives) > Cheers, > Juan Vuletich > > -- Best regards, Igor Stasenko AKA sig. |
In reply to this post by Juan Vuletich-4
Juan Vuletich wrote:
> New preference system? Do you have any pointers? (Just curious...) http://bugs.squeak.org/view.php?id=7306 (remember I suggested using this in MessageTally?) Cheers, - Andreas |
Andreas Raab wrote:
> Juan Vuletich wrote: >> New preference system? Do you have any pointers? (Just curious...) > > http://bugs.squeak.org/view.php?id=7306 (remember I suggested using > this in MessageTally?) > Oh, yes. Thanks. Cuis doesn't support pragmas, though. WRT MessageTally, in Cuis we have spyAllOn: aBlock "aBlock can be something like [ (Delay forMilliseconds: 100) wait]" spyOn: aBlock spyOnProcess: aProcess forMilliseconds: msecDuration These covers all I needed pretty well. I also added: Utilities reportCPUandRAM This is triggered by a hotkey in our system. In case of unexpected slowdowns (we use a very slow processor), the hotkey is pressed and the report sent to me for analysis. Very handy :) Cheers, Juan Vuletich > Cheers, > - Andreas |
Free forum by Nabble | Edit this page |