Window with click-through areas
Window with click-through areas
- Subject: Window with click-through areas
- From: Rolf <email@hidden>
- Date: Fri, 07 Nov 2003 15:43:04 +0100
Hi,
My app has a borderless and transparent window. Various controls are placed on this window, including a transluscent NSBox.
The NSBox must be click-through (ie mouse clicks must go to whatever window lies behind it). All the other controls on the same window must NOT be click-through, including those that are lying on top of the NSBox.
Anybody know how to acheive this ? The method must work on OS X 10.1 and upwards.
NSWindow setIgnoresMouseEvents:TRUE will not work since it would also make other controls than the NSBox click-through.
Maybe I could "redirect" mouse events coming to the NSBox to whatever lies beneath it. I guess I could override sendEvent to fetch these, but how would I redirect them to whatever lies behind ?
Thanks.
/Rolf
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.