• 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
Clicking through a NSView with CALayers
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Clicking through a NSView with CALayers


  • Subject: Clicking through a NSView with CALayers
  • From: Rowan Nairn <email@hidden>
  • Date: Fri, 24 Apr 2009 10:33:29 -0700

Hi,

I have a transparent overlay NSWindow the size if the screen and it
contains a mostly transparent NSView.  I'd like to accept clicks which
occur on non-transparent regions of the view but let clicks that occur
over transparent regions activate the app underneath.  If I draw the
view using drawRect: then this works well.

However I'd also like to use Core Animation in my view.  If I
setWantsLayer:YES and draw using CALayers then clicks over transparent
regions no longer get passed to apps underneath my window.

Is it possible to have my cake and eat it too?

Rowan
_______________________________________________

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

  • Prev by Date: WebView setDownloadDelegate: issue
  • Next by Date: Re: How to clone a mutable dictionary
  • Previous by thread: Re: WebView setDownloadDelegate: issue
  • Next by thread: Re: Clicking through a NSView with CALayers
  • Index(es):
    • Date
    • Thread