Re: Clicking through a NSView with CALayers
Re: Clicking through a NSView with CALayers
- Subject: Re: Clicking through a NSView with CALayers
- From: Bill Cheeseman <email@hidden>
- Date: Sun, 26 Apr 2009 06:08:35 -0400
On Apr 25, 2009, at 10:08 PM, Rowan Nairn wrote:
On Sat, 25 Apr 2009 at 17:26 AM, Bill Cheeseman
<email@hidden> wrote:
I have an identical setup on an application I'm currently working on,
and clickthrough works just fine for me.
Really? I hope we're talking about the same thing here. I just
created a new blank Cocoa Application, and changed the window to a
custom class with this initialization code:
Making the window invisible isn't relevant -- visual transparency and
clickthrough are two different qualities. To make a window transparent
to mouse events, you have to call -[NSWindow
setIgnoresMouseEvents:YES]. Note that the entire window will be
clickthrough, not just transparent areas. Clickthrough works even on
windows that are not invisible. It's normally used to make overlay
windows.
--
Bill Cheeseman - email@hidden
Quechee Software, Quechee, Vermont, USA
www.quecheesoftware.com
PreFab Software - www.prefabsoftware.com
_______________________________________________
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