success: add custom view

:
This commit is contained in:
Felix Förtsch
2019-01-07 15:30:34 +01:00
parent c714a5a258
commit cabd63f052
7 changed files with 35 additions and 16 deletions
+3
View File
@@ -10,6 +10,8 @@ import Cocoa
class StatusBarController: NSObject, NSMenuItemValidation {
@IBOutlet weak var matchView: MatchView!
func validateMenuItem(_ menuItem: NSMenuItem) -> Bool {
return true
}
@@ -59,6 +61,7 @@ class StatusBarController: NSObject, NSMenuItemValidation {
let newItem = MatchMenuItem.init(for: match, action: #selector(self.openStreamLink))
newItem.tag = 1
newItem.target = self
newItem.view = matchView
self.statusBar.addItem(newItem)
}
} else {