In my custom NSTableCellView I override -(void)drawRect
this way (I do this because I have pattern image background of NSWindow
. I need to show only NSLabel
in cellView):
- (void)drawRect:(NSRect)dirtyRect
{
[[NSColor clearColor] setFill];
NSRectFill(dirtyRect);
[super drawRect:dirtyRect];
}
and I get this result, it makes whole NSWindow
transparent:
I want result like VOX mac app do (Look at red eclipse, you see cellView is transparent with parent background image):