• 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
Window with click-through areas
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

  • Prev by Date: Key Value Coding notifications vrs NSNotificationCenter
  • Next by Date: NSBrowser problems
  • Previous by thread: Key Value Coding notifications vrs NSNotificationCenter
  • Next by thread: Re: Window with click-through areas
  • Index(es):
    • Date
    • Thread