LineMorph

Ed Cavazos voltswagon at hotmail.com
Mon Apr 5 02:52:39 UTC 2004


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

_________________________________________________________________
Limited-time offer: Fast, reliable MSN 9 Dial-up Internet access FREE for 2 
months! 
http://join.msn.com/?page=dept/dialup&pgmarket=en-us&ST=1/go/onm00200361ave/direct/01/




More information about the Squeak-dev mailing list