Dec. 6, 2013
9:04 a.m.
You could probably solve that with aspects. There was some talk about an aspect project a while ago but I forgot what it was called. On 06.12.2013, at 10:00, Roberto Minelli <roberto.minelli@usi.ch> wrote:
Hi guys,
I am using Spy for my project, and I need to do something which, on top of my knowledge, is not supported.
Here is the point: Spy allows to insert code before (#beforeRun:with:in:) and after (#afterRun:with:in:) and works perfectly.
Now suppose I want to inject some code *inside* the method, e.g.,
aMethodToBeProfiled
do something
"Injected code accessing some fields of the current instance of this objectâ Transcript show: self field asString.
Is there any support for this?
Thanks in advance, R