[Newbies] Adding instance variables during runtime
cdrick65 at gmail.com
Tue Dec 12 13:14:33 UTC 2006
2006/12/12, Mathieu <mathk.sue at gmail.com>:
> Look at Class>>addInstVarName:
> Point addInstVarName: 'x'.
It's possible but not recommended (I think)
What you could try is to use a container as instVar (or classInstVar)
in which you can add several elements that will act as instVar.
It's a model called AOM (Adaptive Object Model)
have a look here: http://www.adaptiveobjectmodel.com/
More information about the Beginners