FROM : Philip Mötteli
DATE : Tue Jan 28 04:53:01 2003
Hi
I have a proxy to an object, so that I can do something before and
after every invocation of a method of the proxied object:
- (void)forwardInvocation:(NSInvocation *) anInvocation
{
// I do some preparing stuff.
[anInvocation setTarget:proxiedObject];
[anInvocation invoke];
// I do some post calling stuff.
}
This is great so far, except, that I can't do the thing, when the
proxied object calls in the invoked method
[self someMethod];
I can't catch any call to 'self'.
Does anybody know of a way, to redefine 'self'? Or some other way, to
catch the call of '[self someMethod]'?
Eventually by implementing a special kind of fault? So replacing the
'isa' pointer?
Thanks
Phil
DATE : Tue Jan 28 04:53:01 2003
Hi
I have a proxy to an object, so that I can do something before and
after every invocation of a method of the proxied object:
- (void)forwardInvocation:(NSInvocation *) anInvocation
{
// I do some preparing stuff.
[anInvocation setTarget:proxiedObject];
[anInvocation invoke];
// I do some post calling stuff.
}
This is great so far, except, that I can't do the thing, when the
proxied object calls in the invoked method
[self someMethod];
I can't catch any call to 'self'.
Does anybody know of a way, to redefine 'self'? Or some other way, to
catch the call of '[self someMethod]'?
Eventually by implementing a special kind of fault? So replacing the
'isa' pointer?
Thanks
Phil
| Related mails | Author | Date |
|---|---|---|
| No related mails found. | ||






Cocoa mail archive

