From a4e804275517af683afa1733e2db7c383c306f2b Mon Sep 17 00:00:00 2001 From: Ruben Beltran del Rio Date: Thu, 27 Jul 2023 22:32:10 +0200 Subject: Use framerate, control stop --- Captura/Presentation/Windows/PreferencesWindow.swift | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 Captura/Presentation/Windows/PreferencesWindow.swift (limited to 'Captura/Presentation/Windows/PreferencesWindow.swift') diff --git a/Captura/Presentation/Windows/PreferencesWindow.swift b/Captura/Presentation/Windows/PreferencesWindow.swift new file mode 100644 index 0000000..40eac0d --- /dev/null +++ b/Captura/Presentation/Windows/PreferencesWindow.swift @@ -0,0 +1,20 @@ +import Cocoa +import SwiftUI + +import Foundation + +class PreferencesWindow: NSWindow { + + init() { + super.init( + contentRect: NSRect(x: 0, y: 0, width: 600, height: 600), + styleMask: [.titled, .closable, .resizable, .fullSizeContentView], + backing: .buffered, + defer: false) + super.center() + self.isReleasedWhenClosed = false + super.setFrameAutosaveName("Preferences Window") + super.contentView = NSHostingView(rootView: PreferencesScreen()) + super.makeKeyAndOrderFront(nil) + } +} -- cgit