参考:
NSWindow with round corners and shadow
Round corners on a borderless NSWindow
NSTextField not editable in custom NSWindow
Hide NSWindow title bar
在Xcode默认生成的工程中使用xib,只能自动生产默认的样式,如果想要让App有独特的外观,比如为了实现像下图的这种无标题栏,并且圆角的app外观,就要自定义的NSWindow,NSView,覆写初始化方法,重绘层次图像及阴影。
Custom Window
<