David
David

Reputation: 14414

How to track mouseover in a cell of NSMatrix?

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

Upvotes: 1

Views: 639

Answers (1)

justin
justin

Reputation: 104708

try mouseEntered:, mouseMoved:, mouseMoved: etc.

Upvotes: 1

Related Questions