Re: NSView clicking through to superview
Re: NSView clicking through to superview
- Subject: Re: NSView clicking through to superview
- From: Jesper Storm Bache <email@hidden>
- Date: Mon, 28 Sep 2009 06:57:45 -0700
- Acceptlanguage: en-US
- Thread-topic: NSView clicking through to superview
Return "self" from hitTest inside your overlay view.
Jesper
On Sep 27, 2009, at 7:36 PM, PCWiz wrote:
> Hi,
>
> I have a transparent black NSView that I layer over my window using
> NSView's addSubview method. This works fine, but I want to make it so
> that all clicks are captured by the NSView, because right now I can
> click through to the superview underneath. I've already tried
> returning NO for acceptsFirstMouse and it has no effect.
>
> Thanks
> _______________________________________________
>
> 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
_______________________________________________
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