标签: swift macos cocoa nsalert
我使用此代码显示nsalert消息:
let alert = NSAlert() alert.informativeText = "My Text" alert.addButton(withTitle: "Button 1") alert.addButton(withTitle: "Button 2") alert.runModal()
有没有办法设置警报窗口的宽度值?