Clicking through a NSView with CALayers
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