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
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
Hm, ah yes, That's part of my code was gone... Thanks a lot to recall it!
I guess it could be related to loading in Pharo then saving in Squeaksource. I am not sure how I should handle for DrGeo extension only found in Etoys. May be with additional ChangeSet to the Monticello file.
As far as possible I prefer develop in Pharo then deploy in Etoys. I guess it should be possible after all.
Hilaire
2009/11/1 Scott Wallace scott.wallace@squeakland.org:
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 _______________________________________________ etoys-dev mailing list etoys-dev@squeakland.org http://lists.squeakland.org/mailman/listinfo/etoys-dev
etoys-dev@lists.squeakfoundation.org