On Apr 25, 2009, at 1:15 PM, Rowan Nairn wrote:
Here's how to reproduce my problem. Create a fullscreen transparent
window with an empty view and position it over some other app. You'll
see that when you click on the transparent area the view ignores the
click and lets the app behind be activated. This is the behavior I
want. Now change it to call:
[view setWantsLayer:YES]
Now if you click on the transparent region, you get click events in
the view and the background app never gets activated.
I have an identical setup on an application I'm currently working on,
and clickthrough works just fine for me.
My window is borderless and transparent, its entire area is covered by
an empty contentview and also by a CALayer with various sublayers.
When I turn clickthrough on and off, the application behaves as
expected. My contentview is set up as a layer-hosted view, not a layer-
backed view, in case that makes a difference.
--
Bill Cheeseman - b...@cheeseman.name
Quechee Software, Quechee, Vermont, USA
www.quecheesoftware.com
PreFab Software - www.prefabsoftware.com
_______________________________________________
Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com
This email sent to arch...@mail-archive.com