• 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: Cocoa alternative for method aliasing?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Cocoa alternative for method aliasing?


  • Subject: Re: Cocoa alternative for method aliasing?
  • From: Lou Zell <email@hidden>
  • Date: Tue, 29 Mar 2011 14:03:05 -0700

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
> super. This will do exactly what you're after, I think.
>
>
Using super will call -touchesBegan:withEvent of UIButton.  Which, in my
experiments, does not continue to pass the event up the responder chain --
i.e. I never see the touch events reach my UIViewController (where I want
them to end up).  My understanding is that once an object is found that
responds to -touchesBegan:withEvent, the event propagation ends unless
explicitly forwarded.  Calling super will get the event to my superclass
(UIButton), but not beyond that.

Lou
_______________________________________________

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: 
 >Re: Cocoa alternative for method aliasing? (From: Matt Neuburg <email@hidden>)

  • Prev by Date: Re: Weird NSSearchField text layout bug
  • Next by Date: Automatic graphics switching...
  • Previous by thread: Re: Cocoa alternative for method aliasing?
  • Next by thread: Re: Cocoa alternative for method aliasing?
  • Index(es):
    • Date
    • Thread