// // KMCloudEmptyCollectionViewItem.swift // PDF Master // // Created by wanjun on 2022/11/23. // import Cocoa class KMCloudEmptyCollectionViewItem: NSCollectionViewItem { @IBOutlet weak var cloudImageView: NSImageView! @IBOutlet weak var cloudLabel: NSTextField! override func viewDidLoad() { super.viewDidLoad() initializeUI() } // MARK: Init func initializeUI() -> Void { } // MARK: private func refreshUI(item: Int) -> Void { switch item { case KMCloudDocumentState.Box.rawValue: cloudImageView.image = NSImage(named: "ceshi") cloudLabel.stringValue = NSLocalizedString(KMCloudDocumentState.Box.string(), comment: "") case KMCloudDocumentState.DropBox.rawValue: cloudImageView.image = NSImage(named: "ceshi") cloudLabel.stringValue = NSLocalizedString(KMCloudDocumentState.DropBox.string(), comment: "") case KMCloudDocumentState.GoogleDrive.rawValue: cloudImageView.image = NSImage(named: "ceshi") cloudLabel.stringValue = NSLocalizedString(KMCloudDocumentState.GoogleDrive.string(), comment: "") case KMCloudDocumentState.OneDrive.rawValue: cloudImageView.image = NSImage(named: "ceshi") cloudLabel.stringValue = NSLocalizedString(KMCloudDocumentState.OneDrive.string(), comment: "") default: break } } }