Jan. 9, 2015
9:28 p.m.
On 09 Jan 2015, at 18:21, sergio_101 <sergio.rrd@gmail.com> wrote:
I would like to do something like:
MyObject updateWIth: aDictionary.
then, inside the object, treat the keys as instance variables, and the values as values.. and do something like:
(key1 asInstanceVariable(??)): value1.
this seems like it should be possible, but i am just not getting it.
any ideas?
the magic is #instVarNamed:put: self instVarNamed: key1 put: value1 (keep in mind that this is slower than direkt access of instance variables) Marcus