Problems with NSButton presentation when displayed through NSImageView

I have NSButtonsibling on top NSImageView.

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

enter image description here

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):

enter image description here


EDIT 2

, , Windows.

+3
1

, - .

contentView, .
self.bounds dirtyRect .

, contentView , .

0

All Articles