Re: Forwarding to Super
Re: Forwarding to Super
- Subject: Re: Forwarding to Super
- From: "Louis C. Sacha" <email@hidden>
- Date: Fri, 2 Jul 2004 10:04:43 -0700
Hello...
This caught my interest (although I would suggest that this sort of
thing only be done as a last resort), and I played around with it a
bit and have some code that seems to work pretty well so far.
In case anyone wants to take a look, I've posted it temporarily at:
http://www.syndrome3d.com/temp/invoke_super.zip
The AncestorProxy class is similar to the AFSuperInstance class that
you were working on, although most of the functionality was added as
a category to NSInvocation and two runtime messaging functions.
Some of the details you were looking for are mentioned in the source
for the objective-C runtime (available as part of darwin),
specifically the comments in the "objc-msg-ppc.s" file.
Hope that helps,
Louis
I've put this code together to illustrate what I'm trying to do, but
there are two problems with it that I can surmise:
1. The argumentFrame is meant to hold pointers top the objects, while I
am copying the structures, but this is unlikely, because the argument
frame length is huge compared to the size of the pointers taken
together.
2. The offset to each argument is certainly not being handled
correctly, and I think this is because larger structures are being
copied into the argumentFrame.
Anyway, here is the code:
...
_______________________________________________
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.