|[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]|
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?
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>.
|>Forwarding to Super (From: Herr Witten <email@hidden>)|
|>Re: Forwarding to Super (From: Dustin Voss <email@hidden>)|
Visit the Apple Store online or at retail locations.
Copyright © 2011 Apple Inc. All rights reserved.