Re: Question about touchesBegan
Re: Question about touchesBegan
- Subject: Re: Question about touchesBegan
- From: glenn andreas <email@hidden>
- Date: Wed, 09 Dec 2009 16:53:09 -0600
On Dec 9, 2009, at 4:19 PM, Jack Carbaugh wrote:
> So in this case, would the SUBview want to send the SUPERview the touchesbegan event ?
>
>From the documentation (iPhone Application Programming Guide > Event Handling > Touch Events > Handling Multi-Touch Events > Forwarding Touch Events):
Forwarding Touch Events
Event forwarding is a technique used by some applications. You forward touch events by invoking the event-handling methods of another responder object. Although this can be an effective technique, you should use it with caution. The classes of the UIKit framework are not designed to receive touches that are not bound to them; in programmatic terms, this means that the view property of the UITouch object must hold a reference to the framework object in order for the touch to be handled. If you want to conditionally forward touches to other responders in your application, all of these responders should be instances of your own subclasses of UIView.
It's definitely worth reading, and re-reading, those docs - all sorts of nice explanations of how touch handling is handled can be found there...
Glenn Andreas email@hidden
<http://www.gandreas.com/> wicked fun!
Mad, Bad, and Dangerous to Know
_______________________________________________
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