Re: cool way to call super?
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