Re: Forwarding to Super
Re: Forwarding to Super
- Subject: Re: Forwarding to Super
- From: Herr Witten <email@hidden>
- Date: Wed, 30 Jun 2004 18:09:41 -0400
Thanks for the reply. Indeed I want to use that function, but you have
to pass arguments to it somehow, and that is what the apply function
does. Check out
http://gcc.gnu.org/onlinedocs/gcc-3.4.0/gcc/Constructing-
Calls.html#Constructing Calls
On 30 Jun 2004, at 16:17, Dustin Voss wrote:
On 30 Jun, 2004, at 11:48 AM, Herr Witten wrote:
I need to invoke an NSInvocation with the target as the super object
of a given object. That is, I need to invoke the super class's
implementation.
Can I somehow access the argumentFrame of NSInvocation to get the
arguments for the __builtin_apply() function?
I tried doing this by getting the Ivar of the variable, but I only
got a bad access when I tried to apply the offset, so
perhaps I am not doing it correctly.
Must I recreate the argumentFrame by parsing the arguments by hand?
Or is there a higher-level way to do it?
Thanks.
I don't know what this __builtin_apply() function is, but the
Objective-C runtime API has a function, objc_msgSendSuper, which is
surely what you want. See
<http://developer.apple.com/documentation/Cocoa/Conceptual/ObjectiveC/
9objc_runtime_reference/chapter_5_section_1.html#//apple_ref/doc/uid/
20001426>.
_______________________________________________
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.