Re: Removing an action from a subclass

Christiaan Hofman <[email protected]> Tue, 21 Dec 2010 20:16:33 +0100
Newsgroups gmane.comp.macosx.devel
Message-ID <[email protected]>
Thanks Panell and Lee. Just the override of respondsToSelector: seems to do exactly what I want.

Christiaan

On Dec 21, 2010, at 20:02, aglee wrote:

> I wouldn't assume nextResponder actually responds to the action message.  I think simply overriding respondsToSelector: will be enough.  The built-in responder chain mechanism will find the next responder in the chain that does respond to the action message.
> 
> --Andy
> 
> On Dec 21, 2010, at 01:59 PM, John Pannell <[email protected]> wrote:
> 
> Hi Christian-
> 
> Could you implement respondsToSelector: to return NO for your class, and then implement forwardingTargetForSelector: to return the nextResponder in the chain?
> 
> HTH!
> 
> John
> 
> Positive Spin Media
> http://www.positivespinmedia.com
> 
> On Dec 21, 2010, at 11:37 AM, Christiaan Hofman wrote:
> 
>> A view I subclass implements an action that I don't want to support in that view, however I would like the action to be send up the responder chain to the controller object. How can I disable the action in my subclass in such a way that the responder chain does not stop at this view, as if the action method was never implemented?
>> thanks,
>> Christiaan
>> _______________________________________________
>> MacOSX-dev mailing list
>> [email protected]
>> http://www.omnigroup.com/mailman/listinfo/macosx-dev
> 
> _______________________________________________
> MacOSX-dev mailing list
> [email protected]
> http://www.omnigroup.com/mailman/listinfo/macosx-dev
> _______________________________________________
> MacOSX-dev mailing list
> [email protected]
> http://www.omnigroup.com/mailman/listinfo/macosx-dev