• 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: "Henry McGilton (Boulevardier)" <email@hidden>
  • Date: Wed, 9 Dec 2009 18:32:35 -0800

On Dec 9, 2009, at 5:58 PM, Eric E. Dolecki wrote:

> 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?

If I interpret your question correctly, you want the added sub-view to NOT handle touches?

If so, don't implement the touchesBegan/Moved/Ended methods in that sub-view.

Alternatively, simply disable user interaction for that sub-view.

Even more alternatively, I have found in many cases that handling touches in the View Controller
that manages the view hierarchy makes life easier.    You receive a touch and simply ask what
view it landed in.


    Cheers,
        . . . . . . . .    Henry




_______________________________________________

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>)
 >Re: Question about touchesBegan (From: glenn andreas <email@hidden>)
 >Re: Question about touchesBegan (From: "Eric E. Dolecki" <email@hidden>)

  • Prev by Date: Re: Question about touchesBegan
  • Next by Date: Re: Question about touchesBegan
  • Previous by thread: Re: Question about touchesBegan
  • Next by thread: Re: Question about touchesBegan
  • Index(es):
    • Date
    • Thread