<div dir="auto">I think Juan fixed this last week. Maybe you just need to update?</div><div><br><div class="gmail_quote gmail_quote_container"><div dir="ltr" class="gmail_attr">On Mon, Feb 16, 2026 at 06:34 David Gouge via Cuis-dev <<a href="mailto:cuis-dev@lists.cuis.st">cuis-dev@lists.cuis.st</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-style:solid;padding-left:1ex;border-left-color:rgb(204,204,204)">Hi Ken,<br>
<br>
Thanks for the quick response! You're explanation of the code is indeed very helpful. It's going to take me a while to stop thinking in C++ lingo. I'm an old dog and like they say... We take a while to learn new tricks.<br>
<br>
Let me state my observation in a simpler way:<br>
<br>
Using the older Cuis University image, 1) I can copy that example code into a Workspace. 2) doIt 3) Enter my name in the text field and 4) press the Greet button. Everything works fine in the older image.<br>
<br>
Using the newer rolling release image, I do the same thing and it halts after the button press and brings up the debugger.<br>
<br>
In the older image (which works properly) the LabelMorph >> contents:newContents selector did not try to set it's own color instantance var to be the same as newContents colorAt: 1. This appears to be a newer modification to the LabelMorph>>contents: implementation. Using the example in the new image, newContents colorAt: 1 evaluates to nil which in turn causes the LabelMorph>> onDraw message to send aCanvas >>drawString:at:font:color a nil for the color. This is where it halts in the debugger.<br>
<br>
I guess that I was just wanting to know if it would be idiomatic to test for nil before the assignment of color in the LabelMorph>>contents selector. In my C++ mind it would indeed be idiomatic and not doing so would be a bug. Just trying to learn how you smalltalk'ers think.<br>
<br>
Thanks for your help on this!<br>
-Dave<br>
<br>
Sent from Proton Mail for Android.<br>
<br>
-------- Original Message --------<br>
On Sunday, 02/15/26 at 14:15 ken.dickey--- via Cuis-dev <<a href="mailto:cuis-dev@lists.cuis.st" target="_blank">cuis-dev@lists.cuis.st</a>> wrote:<br>
On 2026-02-15 09:52, David Gouge via Cuis-dev wrote:<br>
<br>
> In the code example, the greetingLabel instance is explicitly sent the<br>
> 'color: Color: red' message after creation.<br>
<br>
Quick note:<br>
<br>
  <greetLabel> color: Color red<br>
<br>
Should work.  #Color: is not a selector.  #Color (no colon) refers to<br>
the Color class.<br>
<br>
Syntax highlighting in the Workspace window should clue here.<br>
<br>
I note that LabelMorph>>contents: checks for and handles #Text.<br>
<br>
The 'Color red' invokes the Color>>red method [Browse _Class_ Color,<br>
method #red].<br>
<br>
HTH,<br>
-KenD<br>
--<br>
Cuis-dev mailing list<br>
<a href="mailto:Cuis-dev@lists.cuis.st" target="_blank">Cuis-dev@lists.cuis.st</a><br>
<a href="https://lists.cuis.st/mailman/listinfo/cuis-dev" rel="noreferrer" target="_blank">https://lists.cuis.st/mailman/listinfo/cuis-dev</a><br>
<br>
-- <br>
Cuis-dev mailing list<br>
<a href="mailto:Cuis-dev@lists.cuis.st" target="_blank">Cuis-dev@lists.cuis.st</a><br>
<a href="https://lists.cuis.st/mailman/listinfo/cuis-dev" rel="noreferrer" target="_blank">https://lists.cuis.st/mailman/listinfo/cuis-dev</a><br>
</blockquote></div></div>