[Etoys] Custom accessors for custom morphs
tapplek at gmail.com
Fri Sep 21 23:09:42 EDT 2007
I was trying a custom morph/etoy and I wanted to make some of
its instance variables (minAngle, maxAngle) accessible from the
Viewer. I couldn't find any way to do this other than by adding
four accessor methods to class Player. It seems this should only
involve class modifications, but I don't see a way to make that
happen. I did this in 3.10.
Is there a better way to do this that I am missing, or is Player
really that ugly?
My code is attached. It was a monticello package, but attached
is the fileout.
Matthew Fulmer -- http://mtfulmer.wordpress.com/
Help improve Squeak Documentation: http://wiki.squeak.org/squeak/808
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 12271 bytes
Desc: not available
Url : http://lists.laptop.org/pipermail/etoys/attachments/20070921/2953b59f/attachment-0003.bin
More information about the Etoys