// // KMPageEditExtractWindowController.swift // PDF Master // // Created by tangchao on 2023/1/12. // import Cocoa class KMPageEditExtractWindowController: KMPageEditSettingBaseWindowController { override func windowDidLoad() { super.windowDidLoad() setWindowSize(NSSize(width: 320, height: 208)) self.titleLabel.stringValue = NSLocalizedString("Extract", comment: "") funcButton.title = NSLocalizedString("Extract", comment: "") funcButton.layer?.backgroundColor = NSColor.black.cgColor funcButton.attributedTitle = NSMutableAttributedString(string: funcButton.title, attributes: [NSAttributedString.Key.foregroundColor : NSColor.white]) let settingView: KMPageEditExtractSettingView = KMPageEditExtractSettingView.createFromNib()! self.contentBox.contentView?.addSubview(settingView) settingView.frame = self.contentBox.contentView!.bounds settingView.autoresizingMask = [.width, .height] self.settingView = settingView } }