// // KMToolbarItemPopViewController.swift // PDF Reader Pro // // Created by liujiajie on 2023/11/10. // import Cocoa class KMToolbarItemPopViewController: NSViewController{ @IBOutlet var toolbarHelpTipLabel: NSTextField! convenience init() { self.init(nibName: "KMToolbarItemPopViewController", bundle: nil) } @objc func updateWithHelpTip(helpTip: String) { self.toolbarHelpTipLabel.stringValue = helpTip.count > 0 ? helpTip : "" } override func viewDidLoad() { super.viewDidLoad() self.toolbarHelpTipLabel?.textColor = .labelColor } }