I have a Cocoa application. In the window\'s view I have placed an NSImageView. Using auto layout I have added leading and trailing spaces in such a way that the NSImageView
The image view's compression resistance priority is higher than NSLayoutPriorityWindowSizeStayPut (500). So, the image view's resistance to being compressed prevents the window from resizing.