• 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: cool way to call super?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: cool way to call super?


  • Subject: Re: cool way to call super?
  • From: Ken Thomases <email@hidden>
  • Date: Thu, 23 Sep 2010 09:58:48 -0500

On Sep 23, 2010, at 9:45 AM, Matt Neuburg wrote:

> Is there a cool dynamic Cocoa way to call super with the same parameters
> that came to me?

Nope.

> I guess what I'm looking for is a pre-configured invocation
> of the current command where I can just change the target to super.

Super isn't an object, so it can't be set as the target of an invocation.  The 'super' keyword tells the compiler to use a different Objective-C runtime function to dispatch the message: objc_msgSendSuper instead of objc_msgSend.  That function uses a different search to find the implementation function corresponding to the sent message.

(The receiver of the message is still 'self'.  There is no distinction between the object which received the first message and the object which receives the message targeted at 'super'.)

Regards,
Ken

_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

References: 
 >cool way to call super? (From: Matt Neuburg <email@hidden>)

  • Prev by Date: Cocoa Text System - Temporarily Disabling Layout
  • Next by Date: Re: cool way to call super?
  • Previous by thread: cool way to call super?
  • Next by thread: Re: cool way to call super?
  • Index(es):
    • Date
    • Thread