• 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: Question about touchesBegan
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: Question about touchesBegan
      • From: "Eric E. Dolecki" <email@hidden>
References: 
 >Question about touchesBegan (From: "Eric E. Dolecki" <email@hidden>)
 >Re: Question about touchesBegan (From: Alexander Spohr <email@hidden>)
 >Re: Question about touchesBegan (From: Jack Carbaugh <email@hidden>)

  • Prev by Date: Re: Finding process path from Cocoa?
  • Next by Date: Re: Finding process path from Cocoa?
  • Previous by thread: Re: Question about touchesBegan
  • Next by thread: Re: Question about touchesBegan
  • Index(es):
    • Date
    • Thread