Я пытаюсь показать контекстное меню из NSViewController с одним экземпляром tableView.
...
lazy var contextMenu: NSMenu = {
let rightClickMenu = NSMenu()
rightClickMenu.addItem(withTitle: "Add card", action: #selector(addCard), keyEquivalent: "")
rightClickMenu.addItem(withTitle: "Remove card", action: #selector(removeCard), keyEquivalent: "")
return rightClickMenu
}()