Non-resizable window swift
问题 I have a NSViewController named Hardness , and I need not to let user resize it. Of course, I can just resize it back every time the users tries, but is there any way just not to let user open a window to full screen, or to stretch the window? 回答1: edit/update: Xcode 10.2 • Swift 5 NSWindow has a property called styleMask that allows you to control what kinds of control will be available to the user. If you don't want to allow the user to resize the window you have to remove the style mask