I have a NStableView which is NSView based. In each row also have a NSImageView which is subview of NSView. I have subclassed this NSImageView then overrided mouseDown method. The problem is tableViewSelectionDidChange is also getting fired when user clicks on this imageview. I want only mouseDown to be called but not tableViewSelectionDidChange.
If I set selectionHighlightStyle of table to NSTableViewSelectionHighlightStyle.None then only mouseDown of image view is called. And if I don't give selectionHighlightStyle to NSTableViewSelectionHighlightStyle.None then both mouseDown of imageview and tableViewSelectionDidChange are getting called. Setting selectionHighlightStyle to none seems to solve my problem but is this correct approch? Or I am getting this behaviour because of some bug in appkit?
Also I can't find this behaviour documented somewhere.