简体   繁体   中英

Double-click an NSImageCell subclass

I have a table of draggable rows. I'm subclassing NSImageCell to render an image, mapped via bindings.

How do I get a double-click event from this cell?

我认为您应该将setDoubleAction:消息发送到NSTableView,然后在双击操作方法中,使用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