【发布时间】:2021-12-12 11:28:17
【问题描述】:
I need to remove this option in my app
这是我的应用委托:
import AppKit
public class AppDelegate: NSObject, NSApplicationDelegate {
public func applicationWillTerminate(_ aNotification: Notification) {
MainViewModel.shared.saveSettings()
}
public func applicationDidFinishLaunching(_ notification: Notification) {
for window in NSApp.windows {
var style = window.styleMask
style.remove(.resizable)
window.styleMask = style
window.standardWindowButton(.zoomButton)?.isHidden = true
}
}
public func applicationWillFinishLaunching(_ notification: Notification) {
NSWindow.allowsAutomaticWindowTabbing = false
}
}
我该怎么做?
【问题讨论】:
-
请编辑问题以将其限制为具有足够详细信息的特定问题,以确定适当的答案。