• 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: Overlapping NSViews and mouseDown Events
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Overlapping NSViews and mouseDown Events


  • Subject: Re: Overlapping NSViews and mouseDown Events
  • From: Ken Thomases <email@hidden>
  • Date: Wed, 24 Jun 2015 22:34:16 -0500

Please continue to reply to the list.  That way: a) others can jump in to help, too; and b) others can see whatever advice I give to you (whether it turns out to be good or bad).

On Jun 24, 2015, at 9:56 PM, Thomas Wetmore <email@hidden> wrote:

> Thanks.

You're welcome.

> I must admit that I will have to work for awhile to figure out what your answer means. …
>
> I don’t yet know what call through to super means in this context. Do you mean to try calling hitTest on the superview?

No, I mean calling the method on the superclass.

var hit = super.hitTest(aPoint)
if hit == nil {
    // … check if you want to set hit to self …
}
return hit


> I did just override opaque in the custom view to be true (yes, I’m doing it all in Swift) , but it didn’t change the behavior. I was hoping for an easy fix!

Oh, well.

Regards,
Ken


_______________________________________________

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: 
 >Overlapping NSViews and mouseDown Events (From: Thomas Wetmore <email@hidden>)
 >Re: Overlapping NSViews and mouseDown Events (From: Ken Thomases <email@hidden>)

  • Prev by Date: Re: Overlapping NSViews and mouseDown Events
  • Next by Date: Re: Overlapping NSViews and mouseDown Events
  • Previous by thread: Re: Overlapping NSViews and mouseDown Events
  • Next by thread: Re: Overlapping NSViews and mouseDown Events
  • Index(es):
    • Date
    • Thread