I have a transparent .png
image that lays over an NSView
and it should look like this:
However, sometimes, with no rhyme or reason or indication that it is going to do this, the NSImageView
falls behind the NSView
:
I am not sure how to keep the NSImageView
above the NSView
, or why it even falls behind the NSView
.
Here is what it looks like in Interface Builder:
Update:
I have tried the following with same results:
[header removeFromSuperview];
[mainView addSubview:header positioned:NSWindowAbove relativeTo:nil];
What is a better way to achieve this effect?