简体   繁体   中英

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?

那么检查clickedRow呢?

[self.outlineView clickedRow]

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM