On Sep 9, 2011, at 10:43 PM, Andreas Mayer wrote:

> While doing some additional testing before writing a bug report, I noticed 
> that Apple's "RoundTransparentWindow" sample code did work as expected!
> Turns out that setIgnoresMouseEvents:NO will do the actual breaking.

> Bug ID# 10104405
> 
> Summary:
> Sending setIgnoresMouseEvents:NO to a borderless window makes the transparent 
> parts of the window opaque to mouse events.

Hmm.  I'm not so sure that isn't intended.  From the old AppKit release notes, 
circa 10.3 
<https://developer.apple.com/library/mac/#releasenotes/Cocoa/AppKitOlderNotes.html>:

> We fixed -setIgnoresMouseEvents: so that it works more reliably for opaque 
> windows that want to be transparent to mouse events, and also works for 
> transparent windows that want to receive mouse events. In Jaguar, this API 
> only somewhat worked for ignoring events, and did not work at all for 
> receiving mouse events in transparent windows.

So, it is apparently intentional that setIgnoresMouseEvents:NO will make a 
transparent window non-transparent to mouse events. I recognize that this seems 
to be a change in Lion vs. Snow Leopard, but the Lion behavior seems to restore 
intended behavior.  I guess you'll know for sure when Apple responds to your 
bug report.

Regards,
Ken

_______________________________________________

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

Reply via email to