• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Forwarding to Super
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.


References: 
 >Forwarding to Super (From: Herr Witten <email@hidden>)
 >Re: Forwarding to Super (From: Dustin Voss <email@hidden>)

  • Prev by Date: How read a CrashLog ?
  • Next by Date: Re: NSMatrix Question...Answered
  • Previous by thread: Re: Forwarding to Super
  • Next by thread: Java Cocoa question (NSImage overlays)
  • Index(es):
    • Date
    • Thread