Double click an NSTableView row in Cocoa?

后端 未结 8 1393
旧巷少年郎
旧巷少年郎 2020-12-13 01:41

I need my application to open a window when a user double clicks on a row in an NSTableView. I\'m having a bit of a difficult time finding information or exampl

8条回答
  •  悲哀的现实
    2020-12-13 01:56

    You can wire up the double-click action in Interface Builder. Control-click your table view (make sure you're getting the table view, not the scroll view or the clip view or a table column) to get its connections panel. Find the “doubleAction” item in the “Sent Actions” section. Connect it to the IBAction of your choice.

提交回复
热议问题