about MADynamicObject and serialization.
It is used to put a calculated value into a
variable. Whenever you
send the first message to it, the block gets evaluated and the
This is the bit that I dont understand, I cant see where the
'evaluation' actually happens. Who does it? Where is the code that
says
'aBlock value'?
#doesNotUnderstand: is implemented in the superclass. It then calls
#realSubject what is implemented like this:
realSubject
^ super realSubject on: UnhandledError do: [ :err | nil ]
#on:do: evaluates the block which is returned by the super-call to
#realSubject. Also see the tests.
However I had omitted to do the same to the
context's command's answer
context, as in the case of a PRAddCommand. So it was in the dictionary
of properties, containing references to components that was causing
the
problem. Exactly where WAProxyObject is in there I am not quite sure
since I never got a proper debugger up on it. The
PRCommandAdd-structureClasses appeared to be the one causing trouble,
i.e. a reference to this dynamic object is contained in one of the
components.
Yes, you don't need the answer context. That can be rebuilt if
necessary.
--
Lukas Renggli
http://www.lukas-renggli.ch