Re: forwardInvocation: Works Locally but crashes with DO
Re: forwardInvocation: Works Locally but crashes with DO
- Subject: Re: forwardInvocation: Works Locally but crashes with DO
- From: Joe Lester <email@hidden>
- Date: Wed, 7 Aug 2002 13:09:38 -0500
Thanks for the help. All I had to do was modify
"methodSignatureForSelector:" so that it called
"instanceMethodSignatureForSelector:" instead of calling
"methodSignatureForSelector:" on itself (creating an infinite loop).
Works like a charm!
id surrogateObj;
- (NSMethodSignature *)methodSignatureForSelector:(SEL)aSelector
{
//Used to call methodSignatureForSelector here, which created the
loop
NSMethodSignature *sig = [[self class]
instanceMethodSignatureForSelector:aSelector];
if (sig) return sig;
return [surrogateObj methodSignatureForSelector:aSelector];
}
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.