RE: Help with an old problem - Solved
RE: Help with an old problem - Solved
- Subject: RE: Help with an old problem - Solved
- From: "Tim Hart" <email@hidden>
- Date: Wed, 17 May 2006 23:13:37 -0500
I ended up implementing an acceptable solution:
I subclassed NSMethodSignature and over-rode a single method:
+signatureWithObjCTypes:
In this method, I modified the input string so that structures enclosing
pointers to structures were replaced with structures enclosing pointers to
void. So
{struct_a=^{struct_b}}8
Becomes
{struct_a=^v}8
I pass this on to [super signatureWithObjCTypes:].
Then, in my delegating object, methodSignatureForSelector: becomes
-(NSMethodSignature*)methodSignatureForSelector:(SEL)selector
{
NSMethodSignature *result = nil;
Method method;
method = class_getInstanceMethod([delegate class], selector);
if(NULL != method)
result = [MyMethodSignature
signatureWithObjCTypes:method->method_types];
return result;
}
>From there, life is good. I'd appreciate comments if anyone sees anything
hairy lying in wait.
Tim
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden