<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
On 10/23/2021 11:50 PM, John McGarey via Cuis-dev wrote:
<blockquote
cite="mid:1964722023.1011197.1635043835830@mail.yahoo.com"
type="cite">
<div class="yahoo-style-wrap" style="font-family: Helvetica
Neue,Helvetica,Arial,sans-serif; font-size: 13px;">
<div dir="ltr" data-setdir="false">I'm going through The Cuis
book and am on "Chapter 7 The Fundamentals of Morph" and right
out of the gate the first example doesn't work for me. In
7.1.1 on p109 when I try to `LineExampleMorph new openInWorld`
I get: " Error: My subclass should have overridden
#imageForm:depth:" and it never draws the line. </div>
<div dir="ltr" data-setdir="false">
<div>
<div><br>
</div>
<div><br>
</div>
<div>
<div dir="ltr" data-setdir="false">Details:</div>
</div>
</div>
</div>
<div dir="ltr" data-setdir="false">1. Image Version:
Cuis5.0-4928 image</div>
<div dir="ltr" data-setdir="false">2. VM Version: Using the
Squeak VM from the install docs:
squeak.cog.spur_macos64x64_202003021730</div>
<div dir="ltr" data-setdir="false">3. Book Version: The Cuis
Book I am using says "Compilation: 23 August 2021" and I
looked at the book source in github and it's not particularly
different now in this part. </div>
<div dir="ltr" data-setdir="false">4. I already ran the 'feature
requre' for VectorGraphics (and 4 system categories for
VectorGraphics were created with lots of classes) </div>
<div dir="ltr" data-setdir="false">5. I ran a few of the
examples in the system category 'VectorGraphics-Examples" and
all of them seemed to run fine</div>
<div dir="ltr" data-setdir="false">6. I tried to override
#imageForm:depth: myself but that's over my head and I
couldn't get it to work (but if that method override is
required that should be in the book anyway).</div>
<div dir="ltr" data-setdir="false">7. It doesn't seem to be the
'new' method that is triggering the error but the
'openInWorld' method.<br>
</div>
<div dir="ltr" data-setdir="false"><br>
</div>
<div dir="ltr" data-setdir="false"><br>
</div>
<div dir="ltr" data-setdir="false"><br>
</div>
<div dir="ltr" data-setdir="false">
<div>
<div dir="ltr" data-setdir="false">
<div>
<div dir="ltr" data-setdir="false">I'm at a loss. Could
someone point me in the right direction? </div>
</div>
<div dir="ltr" data-setdir="false"><br>
</div>
<div dir="ltr" data-setdir="false"><br>
</div>
<div dir="ltr" data-setdir="false">Thank you,</div>
<div dir="ltr" data-setdir="false">John</div>
</div>
</div>
</div>
</div>
</blockquote>
<br>
Just added (amongst several other small fixes) an implementation of
#imageForm:depth: for Morph.<br>
<br>
Thanks for reporting, and for reading the CuisBook!<br>
<br>
Cheers,<br>
<pre class="moz-signature" cols="72">--
Juan Vuletich
<a class="moz-txt-link-abbreviated" href="http://www.cuis-smalltalk.org">www.cuis-smalltalk.org</a>
<a class="moz-txt-link-freetext" href="https://github.com/Cuis-Smalltalk/Cuis-Smalltalk-Dev">https://github.com/Cuis-Smalltalk/Cuis-Smalltalk-Dev</a>
<a class="moz-txt-link-freetext" href="https://github.com/jvuletich">https://github.com/jvuletich</a>
<a class="moz-txt-link-freetext" href="https://www.linkedin.com/in/juan-vuletich-75611b3">https://www.linkedin.com/in/juan-vuletich-75611b3</a>
@JuanVuletich</pre>
</body>
</html>