I have implemented my resizing behavior for an NSWindow. The problem is I don't know how to disable the default resizing behavior. For example, a resizing cursor would been shown when the cursor was moved to borders of the NSWindow, which is not expected for me.
As resizing was implemented by myself, the NSWindow has to be resizable. The NSWindow has no caption and border frame. If I override the NSWndow.canBecomeKeyWindow and return NO, then no default resizing cursor would be shown as I expected. However, the NSWindow used here must support being key window.
Actually, I have no idea about how to deal with this problem. For a window in Windows OS, I can simply respond to WM_HITTEST and return HT_CLIENT to prevent system default behavior. However, for macOS, there is no corresponding way to do so.
. resizableoff?