Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Double clicking on headers of NSOutlineView is triggering double-click method?

I've a set a double-click action for my NSOutlineView, everything is working well:every time I double click on a row in the table, the correct method is invoked.

However, the same method is invoked when I double click on the header of a column (let's say to change the sort order). I've never noticed this behaviour before, how could I disable it?

like image 613
aneuryzm Avatar asked Jul 09 '15 13:07

aneuryzm


1 Answers

What about checking the clickedRow?

[self.outlineView clickedRow]
like image 118
paxos Avatar answered Nov 08 '22 09:11

paxos