Re: Overlapping NSViews and mouseDown Events
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