Minor issue with NewColorPickerMorph and question about Object>>changed: and how to debug

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

Minor issue with NewColorPickerMorph and question about Object>>changed: and how to debug

Karl Ramberg
In the NewColorPickerMorph if you scale the alpha of the selected color, the UI will not turn let you set alpha back to fully opaque. You can pull the slider all the way to the max but the selected color will remain translucent.

This is a minor issue but the big issue is how do debug this and similar issues which is set up with the Object>>update: or Object>>changed:

I find that I'm going into a rabbit hole each time I try to debug these message sends. I can't seem to get a grip on what or where the messages and changes in state are from.

Do anybody have any advise on good practice for debugging Object>>update: or Object>>changed: ?

Best,
Karl


Reply | Threaded
Open this post in threaded view
|

Re: Minor issue with NewColorPickerMorph and question about Object>>changed: and how to debug

Nicolai Hess-3-2


2015-11-10 15:45 GMT+01:00 karl ramberg <[hidden email]>:
In the NewColorPickerMorph if you scale the alpha of the selected color, the UI will not turn let you set alpha back to fully opaque. You can pull the slider all the way to the max but the selected color will remain translucent.

This is a minor issue but the big issue is how do debug this and similar issues which is set up with the Object>>update: or Object>>changed:

I find that I'm going into a rabbit hole each time I try to debug these message sends. I can't seem to get a grip on what or where the messages and changes in state are from.

Do anybody have any advise on good practice for debugging Object>>update: or Object>>changed: ?

Best,
Karl




btw, there is an open issue on mantis for the NewColorPicker
http://bugs.squeak.org/view.php?id=7753
NewColorPickerMorph can not be used to change colors re erase
colors from a SketchMorph.
The Menu entries
"erase pixels of color" and
"recolor pixels of color" raise a DNU.

Changing a GradientFill color from within the
fill style menu (for any morph) doesn't work as well.




Reply | Threaded
Open this post in threaded view
|

Re: Minor issue with NewColorPickerMorph and question about Object>>changed: and how to debug

Chris Muller-3
In reply to this post by Karl Ramberg
I hear you about trying to debug the Listener pattern, its a pain.

One thing I do when I can't use the debugger is create a global
"object log" -- an OrderedCollection -- and then, in Object>>#update:
(or whereever) capture the current stack into your log:

    MyGlobalLog add: thisContext longStack



On Tue, Nov 10, 2015 at 8:45 AM, karl ramberg <[hidden email]> wrote:

> In the NewColorPickerMorph if you scale the alpha of the selected color, the
> UI will not turn let you set alpha back to fully opaque. You can pull the
> slider all the way to the max but the selected color will remain
> translucent.
>
> This is a minor issue but the big issue is how do debug this and similar
> issues which is set up with the Object>>update: or Object>>changed:
>
> I find that I'm going into a rabbit hole each time I try to debug these
> message sends. I can't seem to get a grip on what or where the messages and
> changes in state are from.
>
> Do anybody have any advise on good practice for debugging Object>>update: or
> Object>>changed: ?
>
> Best,
> Karl
>
>
>

Reply | Threaded
Open this post in threaded view
|

Re: Minor issue with NewColorPickerMorph and question about Object>>changed: and how to debug

Karl Ramberg
Great tips.
I'll test that

Best,
Karl

On Tue, Nov 10, 2015 at 6:16 PM, Chris Muller <[hidden email]> wrote:
I hear you about trying to debug the Listener pattern, its a pain.

One thing I do when I can't use the debugger is create a global
"object log" -- an OrderedCollection -- and then, in Object>>#update:
(or whereever) capture the current stack into your log:

    MyGlobalLog add: thisContext longStack



On Tue, Nov 10, 2015 at 8:45 AM, karl ramberg <[hidden email]> wrote:
> In the NewColorPickerMorph if you scale the alpha of the selected color, the
> UI will not turn let you set alpha back to fully opaque. You can pull the
> slider all the way to the max but the selected color will remain
> translucent.
>
> This is a minor issue but the big issue is how do debug this and similar
> issues which is set up with the Object>>update: or Object>>changed:
>
> I find that I'm going into a rabbit hole each time I try to debug these
> message sends. I can't seem to get a grip on what or where the messages and
> changes in state are from.
>
> Do anybody have any advise on good practice for debugging Object>>update: or
> Object>>changed: ?
>
> Best,
> Karl
>
>
>




Reply | Threaded
Open this post in threaded view
|

Re: Minor issue with NewColorPickerMorph and question about Object>>changed: and how to debug

Karl Ramberg
In reply to this post by Nicolai Hess-3-2


On Tue, Nov 10, 2015 at 5:18 PM, Nicolai Hess <[hidden email]> wrote:


2015-11-10 15:45 GMT+01:00 karl ramberg <[hidden email]>:
In the NewColorPickerMorph if you scale the alpha of the selected color, the UI will not turn let you set alpha back to fully opaque. You can pull the slider all the way to the max but the selected color will remain translucent.

This is a minor issue but the big issue is how do debug this and similar issues which is set up with the Object>>update: or Object>>changed:

I find that I'm going into a rabbit hole each time I try to debug these message sends. I can't seem to get a grip on what or where the messages and changes in state are from.

Do anybody have any advise on good practice for debugging Object>>update: or Object>>changed: ?

Best,
Karl




btw, there is an open issue on mantis for the NewColorPicker
http://bugs.squeak.org/view.php?id=7753
NewColorPickerMorph can not be used to change colors re erase
colors from a SketchMorph.
The Menu entries
"erase pixels of color" and
"recolor pixels of color" raise a DNU.
I'll take a look at that.
Changing colors in a Sketch is quite a special case, though.

Changing a GradientFill color from within the
fill style menu (for any morph) doesn't work as well.

Have you looked at the latest trunk where I have contributed a special tool for editing colors in gradients ?

Best,
Karl 



Reply | Threaded
Open this post in threaded view
|

Re: Minor issue with NewColorPickerMorph and question about Object>>changed: and how to debug

Nicolai Hess-3-2


2015-11-10 19:53 GMT+01:00 karl ramberg <[hidden email]>:


On Tue, Nov 10, 2015 at 5:18 PM, Nicolai Hess <[hidden email]> wrote:


2015-11-10 15:45 GMT+01:00 karl ramberg <[hidden email]>:
In the NewColorPickerMorph if you scale the alpha of the selected color, the UI will not turn let you set alpha back to fully opaque. You can pull the slider all the way to the max but the selected color will remain translucent.

This is a minor issue but the big issue is how do debug this and similar issues which is set up with the Object>>update: or Object>>changed:

I find that I'm going into a rabbit hole each time I try to debug these message sends. I can't seem to get a grip on what or where the messages and changes in state are from.

Do anybody have any advise on good practice for debugging Object>>update: or Object>>changed: ?

Best,
Karl




btw, there is an open issue on mantis for the NewColorPicker
http://bugs.squeak.org/view.php?id=7753
NewColorPickerMorph can not be used to change colors re erase
colors from a SketchMorph.
The Menu entries
"erase pixels of color" and
"recolor pixels of color" raise a DNU.
I'll take a look at that.

Thanks.
 
Changing colors in a Sketch is quite a special case, though.

I don't know for what I needed this, the bug report is two years old :)

Changing a GradientFill color from within the
fill style menu (for any morph) doesn't work as well.

Have you looked at the latest trunk where I have contributed a special tool for editing colors in gradients ?

No, just checked the current release
 

Best,
Karl