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 protected])

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 [email protected]

Reply via email to