Re: Question about touchesBegan
Re: Question about touchesBegan
- Subject: Re: Question about touchesBegan
- From: "Eric E. Dolecki" <email@hidden>
- Date: Wed, 9 Dec 2009 20:58:35 -0500
Is there a way to define the touchesBegan in an added sub view to
be constricted to a certain area and not allObjects? Thus leaving a "hole"
to allow touches to be fired on the view below?
On Wed, Dec 9, 2009 at 5:53 PM, glenn andreas <email@hidden> wrote:
>
> 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
>
--
http://ericd.net
Interactive design and development
_______________________________________________
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