Cocoa alternative for method aliasing?

2011-03-29 Thread Lou Zell
Mornin' Devs, Is there a recommended pattern for passing events up the responder chain without subclassing a class and overriding the methods I'm interested in? Here is an explanation of what I'm trying to do: I have a subclass of UIButton, call it MyButton, that I would like to function as a

Re: Cocoa alternative for method aliasing?

2011-03-29 Thread David Duncan
On Mar 29, 2011, at 11:20 AM, Lou Zell wrote: Mornin' Devs, Is there a recommended pattern for passing events up the responder chain without subclassing a class and overriding the methods I'm interested in? Here is an explanation of what I'm trying to do: There is a certain question of

Re: Cocoa alternative for method aliasing?

2011-03-29 Thread Lou Zell
David, Matt, Thanks for the responses and pointing me towards UIControlEvents. -(void)touchesBegan:(NSSet *)touches withEvent:(UIEvent *)event { [[self nextResponder] touchesBegan:touches withEvent:event]; } Don't do that. The way to pass touches up the responder chain is by calling

Re: Cocoa alternative for method aliasing?

2011-03-29 Thread Lou Zell
On Tue, Mar 29, 2011 at 5:16 PM, WT jrca...@gmail.com wrote: On Mar 29, 2011, at 4:25 PM, Matt Neuburg wrote: On Tue, 29 Mar 2011 11:20:31 -0700, Lou Zell lzel...@gmail.com said: I have a subclass of UIButton, call it MyButton, that I would like to function as a vanilla UIButton but also