[etoys-dev] adding category to Morph viewer

Scott Wallace scott.wallace at squeakland.org
Sat Oct 31 19:40:29 EDT 2009


On Oct 31, 2009, at 4:00 PM, Hilaire Fernandes wrote:

> When I add the following method in my class side morph, it produces in
> the object viewer an empty drgeo category.
> Such code used to work before.
>
> Any idea?
>
> additionsToViewerCategoryDrgeo
> ^ # (drgeo (
> (slot curveAbscissa 'The abscissa of this point on the curve' Number
> readWrite Player getCurveAbscissa Player setCurveAbscissa:)
> (slot Xw 'The x coordinate in the DrGeoII world coordinate system'
> Number readWrite Player getWorldX Player setWorldX:)
> (slot Yw 'The y coordinate in the DrGeoII world coordinate system'
> Number readWrite Player getWorldY Player setWorldY:)
> ))
>
> Hilaire
> --  

Hi, Hilaire,

You need to implement #getCurveAbscissa, setCurveAbscissa: etc., in  
Player; once you've done that, the corresponding items will show up in  
the drgeo category of the viewer.

Cheers,

-- Scott


More information about the etoys-dev mailing list