Le 27/2/15 17:47, Alexandre Bergel a écrit :
So the idea is that the reference to self in MyProxy becomes the wrapped object
using the become.
Yes, for some reason, I did not see this. Well spotted!
I am getting old apparently :-)
The main problem of this kind of implementation is that self is bounded to the
proxy, so all the internal calls of self are not going to be intercepted and
the return self is going to expose the original object.
Yes. Maybe the doesNotUnderstand: can be improved to take this into account.
No it is not possible simply (or you have to rename all your methods and
recompile all the class/superclass :).
Cheers,
Alexandre