LineMorph
Scott Wallace
scott.wallace at squeakland.org
Mon Apr 5 07:21:44 UTC 2004
Hi, Ed,
Actually not. See, for example,
http://lists.squeakfoundation.org/pipermail/squeak-dev/2003-March/054537.html
You should be subclassing PolygonMorph directly.
Cheers,
-- Scott
At 9:52 PM -0500 4/4/04, Ed Cavazos wrote:
>I don't think I'm using the latest version of Squeak so perhaps this
>is no longer a problem but...
>
>Here's the from:to:color:width: method for LineMorph:
>
>**************************************************
>
>from: startPoint to: endPoint color: lineColor width: lineWidth
>
> ^ PolygonMorph vertices: {startPoint. endPoint}
> color: Color black borderWidth: lineWidth borderColor: lineColor
>
>**************************************************
>
>Shouldn't 'PolygonMorph' be changed to 'self'?
>
>This tripped me up since I subclassed LineMorph and the resulting
>objects weren't responding to 'isKindOf' properly...
>
>Ed
More information about the Squeak-dev
mailing list
|