Getting a borderless window to receive mouseMoved events (Cocoa OSX)

Posted by Michael Minerva on Stack Overflow See other posts from Stack Overflow or by Michael Minerva
Published on 2010-03-25T23:18:15Z Indexed on 2010/03/25 23:23 UTC
Read the original article Hit count: 288

Filed under:
|
|
|

I have a little popup window used for selecting images sorted by groups, and I would like to add a selection box around whatever image is being hovered over. I am trying to this by overriding the mouseMoved event for the window but it seems that a window that has a border-less style mask receives no mouseMoved events even if you have set setAcceptsMouseMoved events to YES. Is there anyway to make a borderless window receive this events?

© Stack Overflow or respective owner

Related posts about cocoa

Related posts about osx