• 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
Re: Lion breaks the ability to "click-through" transparent window areas when the window is resizable.
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Lion breaks the ability to "click-through" transparent window areas when the window is resizable.


  • Subject: Re: Lion breaks the ability to "click-through" transparent window areas when the window is resizable.
  • From: Ken Thomases <email@hidden>
  • Date: Fri, 09 Sep 2011 23:21:30 -0500

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 (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

  • Follow-Ups:
    • Re: Lion breaks the ability to "click-through" transparent window areas when the window is resizable.
      • From: Andreas Mayer <email@hidden>
References: 
 >Re: Lion breaks the ability to "click-through" transparent window areas when the window is resizable. (From: Andreas Mayer <email@hidden>)
 >Re: Lion breaks the ability to "click-through" transparent window areas when the window is resizable. (From: Bill Cheeseman <email@hidden>)
 >Re: Lion breaks the ability to "click-through" transparent window areas when the window is resizable. (From: Andreas Mayer <email@hidden>)
 >Re: Lion breaks the ability to "click-through" transparent window areas when the window is resizable. (From: Andreas Mayer <email@hidden>)

  • Prev by Date: Re: Lion breaks the ability to "click-through" transparent window areas when the window is resizable.
  • Next by Date: Re: Lion breaks the ability to "click-through" transparent window areas when the window is resizable.
  • Previous by thread: Re: Lion breaks the ability to "click-through" transparent window areas when the window is resizable.
  • Next by thread: Re: Lion breaks the ability to "click-through" transparent window areas when the window is resizable.
  • Index(es):
    • Date
    • Thread