// // KMFileSearchView.swift // PDF Master // // Created by wanjun on 2022/12/7. // import Cocoa @objc protocol KMManagementFilesSearch { @objc optional func searchStringChange(_ keyword: String) @objc optional func searchTypeChange(_ tpye: Int) } @objcMembers class KMFileSearchView: NSView { open var delete: KMManagementFilesSearch? @IBOutlet weak var searchField: NSTextField! @IBOutlet weak var typeSelectBtn: NSPopUpButton! @IBOutlet weak var cancelBtn: NSButton! override func draw(_ dirtyRect: NSRect) { super.draw(dirtyRect) // Drawing code here. } override func awakeFromNib() { super.awakeFromNib() } // MARK: Action @IBAction func typeMenuClicked(_ sender: Any) { } }