I have a NSWindow where I set opaque attribute to NO. The problem is that when I put any view inside that window it’s corners has blank pixels.
Everything works well when opaque attribue is left with YES value, however, window’s corners are not rounded anymore. See picture:

I’ve created repository with simple example project at bitbucket: https://bitbucket.org/lukaszb/animationartifacts
Is there a way I can fix this (remain window’s corners rounded and blank pixels not appearing)? Or should I try another solution (without setOapque:NO at NSWindow subclass)?
Try enabling the Core Animation layer for your
RoundedView, i.e., openMainMenu.xib, selectRoundedViewand in the “View Effects” tab (rightmost one) check the view under “Core Animation Layer”.Alternatively you can do it programmatically, e.g., in
RoundedViewadd:Also
#import <QuartzCore/QuartzCore.h>and addQuartzCore.frameworkto the project. You can then delete thedrawRectmethod sinceCALayeralready does rounded corners for you. (Actually you can delete your wholeRoundedViewclass if you just set up this layer for a regularNSViewthat you use in its place.)