• 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: Minimum alpha value for transparent windows
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Minimum alpha value for transparent windows


  • Subject: Re: Minimum alpha value for transparent windows
  • From: Quincey Morris <email@hidden>
  • Date: Sat, 5 Sep 2009 18:42:00 -0700

On Sep 5, 2009, at 13:43, Gabriel Zachmann wrote:

If you are interested in mouse events in your entire window area, then
you can use
[NSWindow setIgnoresMouseEvents:NO] and not have to worry about "faint
paint" issues.

Thanks for your response, but I don't see how that would help me.
Maybe that's just because I am a newbie, maybe I didn’t describe my setting well enough.


My window contains a view (that's the transparent drawing canvas) and a number of buttons.
The buttons should never be click-through; the view (= canvas) should be click-through or receiving mouse events depending on the state of the app.

The point is that when you make a window transparent, it *automatically* sets the 'setIgnoresMouseEvents:YES' behavior. If you want your transparent window to handle mouse clicks after all, you simply restore the 'setIgnoresMouseEvents:NO' behavior yourself.


Remember, you started this thread by asking about making a *window* non-opaque. Technically, that's a different matter from making individual views non-opaque._______________________________________________

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


References: 
 >Minimum alpha value for transparent windows (From: Gabriel Zachmann <email@hidden>)
 >Re: Minimum alpha value for transparent windows (From: Jesper Storm Bache <email@hidden>)
 >Re: Minimum alpha value for transparent windows (From: Gabriel Zachmann <email@hidden>)

  • Prev by Date: Re: Input Managers in Snow Leopard
  • Next by Date: Re: Custom Window not receiving "full" shadow
  • Previous by thread: Re: Minimum alpha value for transparent windows
  • Next by thread: How do I update a constraint on my CALayer?
  • Index(es):
    • Date
    • Thread