1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253 |
- //
- // KMBatchSettingItemView.swift
- // PDF Master
- //
- // Created by lizhe on 2023/1/16.
- //
- import Cocoa
- typealias KMBatchSettingItemViewExport = (_ view: NSView, _ data: KMBatchSettingItemViewModel) -> ()
- class KMBatchSettingItemView: BaseXibView {
- var type: KMBatchCollectionViewType = .unknow
- var subType: Any?
- var filesData: [KMBatchProcessingTableViewModel] = [] {
- didSet {
- self.reloadData()
- }
- }
-
- var isDisable: Bool = false {
- didSet {
- self.bacthProcessingNotification()
- }
- }
-
- var batchExport: KMBatchSettingItemViewExport?
-
- deinit {
- NotificationCenter.default.removeObserver(self)
- }
-
- override func draw(_ dirtyRect: NSRect) {
- super.draw(dirtyRect)
- // Drawing code here.
- }
-
- func reloadData() {
-
- }
-
- override func setup() {
- super.setup()
- // NotificationCenter.default.addObserver(self, selector: #selector(bacthProcessingNotification), name: NSNotification.Name(kBacthProcessNotification), object: nil)
- }
-
- func bacthProcessingNotification() {
-
- }
-
- }
|