How to track mouseover in a cell of NSMatrix?
Question
I would like to track a mouseover event of a NSCell in a NSMatrix. The documents say I can set the NSMatrix mode to NSTrackModeMatrix
and the cell will be sent the message trackMouse:inRect:ofView:untilMouseUp:
when the mouse is within the bounds of the cell, however this message is only sent to the cell when I click on the cell. I am misinterpreting the docs? If so is there another way I can use to track a mouseover event?
Thanks
Solution
try mouseEntered:, mouseMoved:, mouseMoved: etc.
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow