I have NSButtonsibling on top NSImageView.
Whenever I click on a window, there are some rendering problems. It looks like this:

As you can see, there are problems with a white edge.
Oddly enough, this problem even persists if I redefine drawRect:.
Nothing happens at all, but whenever I click on it, these white edges appear.
In addition, when changing the background image, the button redraws and the edges disappear.
Any idea what might trigger this?
EDIT
I found out that this happens with every instance NSView
and it actually clears part of the buffer (you can see the desktop wallpaper):

EDIT 2
, , Windows.