macos: paste protection boilerplate

This commit is contained in:
Mitchell Hashimoto
2023-11-04 20:11:09 -07:00
parent 3e26a2f506
commit 5f5f5a44ec
5 changed files with 85 additions and 0 deletions

View File

@@ -0,0 +1,15 @@
import Foundation
import Cocoa
import SwiftUI
import GhosttyKit
class PasteProtectionController: NSWindowController {
override var windowNibName: NSNib.Name? { "PasteProtection" }
//MARK: - NSWindowController
override func windowDidLoad() {
guard let window = window else { return }
window.contentView = NSHostingView(rootView: PasteProtectionView())
}
}