         }.bind(to: selectedSession).addDisposableTo(self.disposeBag)
     }
     
+    func tableViewMenuItemClicked(_ menuItem: NSMenuItem) {
+        
+
+    }
+    
+    override func validateMenuItem(_ menuItem: NSMenuItem) -> Bool {
+        
+        return true
+    }
 }
 
 extension SessionsTableViewController: NSTableViewDataSource, NSTableViewDelegate {

import RealmSwift
import ConfCore

class SessionsTableViewController: NSViewController {
    
    fileprivate struct Metrics {
        static let headerRowHeight: CGFloat = 20
        static let sessionRowHeight: CGFloat = 64
    }
    
    private let disposeBag = DisposeBag()

        
        let contextMenu = NSMenu.init(title: "Context Menu")
        
        let watchedMenuItem = NSMenuItem.init(title: "Mark as Watched", action: #selector(tableViewMenuItemClicked(_:)), keyEquivalent: "")
        watchedMenuItem.tag = SessionsTableViewControllerMenuItemTags.Watched.rawValue
        contextMenu.addItem(watchedMenuItem)
        
        let unwatchedMenuItem = NSMenuItem.init(title: "Mark as Unwatched", action: #selector(tableViewMenuItemClicked(_:)), keyEquivalent: "")
        unwatchedMenuItem.tag = SessionsTableViewControllerMenuItemTags.Unwatched.rawValue
        contextMenu.addItem(unwatchedMenuItem)
        
        contextMenu.addItem(NSMenuItem.separator())
        
        let favoriteMenuItem = NSMenuItem.init(title: "Add to Favorites", action: #selector(tableViewMenuItemClicked(_:)), keyEquivalent: "")
        favoriteMenuItem.tag = SessionsTableViewControllerMenuItemTags.Favorite.rawValue
        contextMenu.addItem(favoriteMenuItem)
        
        let removeFavoriteMenuItem = NSMenuItem.init(title: "Remove From Favorites", action: #selector(tableViewMenuItemClicked(_:)), keyEquivalent: "")
        removeFavoriteMenuItem.tag = SessionsTableViewControllerMenuItemTags.RemoveFavorite.rawValue
        contextMenu.addItem(removeFavoriteMenuItem)
        
        contextMenu.addItem(NSMenuItem.separator())
        
        let downloadMenuItem = NSMenuItem.init(title: "Download", action: #selector(tableViewMenuItemClicked(_:)), keyEquivalent: "")
        downloadMenuItem.tag = SessionsTableViewControllerMenuItemTags.Download.rawValue
        contextMenu.addItem(downloadMenuItem)
        
        let cancelDownloadMenuItem = NSMenuItem.init(title: "Cancel Download", action: #selector(tableViewMenuItemClicked(_:)), keyEquivalent: "")
        contextMenu.addItem(cancelDownloadMenuItem)
        cancelDownloadMenuItem.tag = SessionsTableViewControllerMenuItemTags.CancelDownload.rawValue
        
        contextMenu.addItem(NSMenuItem.separator())
        
        
        tableView.menu = contextMenu
        
