I had a problem with NSWindowand this content view - with the appearance of the title and rounded bottom corners. I am watching problem 10.11, and 10.10 everything looks good. But to the point.
The title bar of the window is as follows:

and at the same time, the bottom looks like this:

No rounded corners. The window is launched programmatically and consists of two subqueries added programmatically using the self.contentView addSubview: method.
After some work, it turned out that adding
[self.contentView setWantsLayer:YES]
at the beginning of the init window, the line looks like this:

Flat and hard, darker than normal color - not very good. On the other hand, at the bottom it looks like I need it to look like this:

.
init :
[self.contentView setWantsLayer:YES];
self.identifier = someid;
self.styleMask = NSTitledWindowMask | NSClosableWindowMask | NSMiniaturizableWindowMask | NSResizableWindowMask;
self.backingType = NSBackingStoreBuffered;
[self setFrame:NSMakeRect(0, 0, windowInitWidth, windowInitHeight) display:NO];
[self setBackgroundColor:[NSColor colorForKeyPath:@"blackcolor"]];
NSButton *windowButton = [self standardWindowButton:NSWindowCloseButton];
[windowButton setEnabled:NO];
[self centerOnMainWindowScreen];
[self setupLeftPanel];
[self setupRightPanel];
[self setupConstraints];
, , ( ?) , .
: 10.10 . 10.11 .