• 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: NSView clicking through to superview
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSView clicking through to superview


  • Subject: Re: NSView clicking through to superview
  • From: PCWiz <email@hidden>
  • Date: Mon, 28 Sep 2009 19:55:28 -0600

Tried this earlier but it had no effect...

On 2009-09-28, at 7:57 AM, Jesper Storm Bache wrote:

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


References: 
 >NSView clicking through to superview (From: PCWiz <email@hidden>)
 >Re: NSView clicking through to superview (From: Jesper Storm Bache <email@hidden>)

  • Prev by Date: NSTextField, drawing the text offset to the right in the field
  • Next by Date: Re: NSView clicking through to superview
  • Previous by thread: Re: NSView clicking through to superview
  • Next by thread: Re: NSView clicking through to superview
  • Index(es):
    • Date
    • Thread