Hi in my application i have a custom view with CALayer (i use it for transition animation), in that view i add some subviews, one of them is a view with NSTableView. Each cell of NSTableView, draws it's content with shadow. Code like this:
NSShadow* shadow = [[NSShadow alloc] init];
[shadow setShadowOffset:NSMakeSize(2.0, -2.0)];
[shadow setShadowBlurRadius:2.0];
[shadow setShadowColor:[[NSColor blackColor] colorWithAlphaComponent:0.3]];
[shadow set];
[self.stringValue drawInRect:NSMakeRect(x, y, w - 60, h) withAttributes:attributes];
When my NSTableView has less than ~50 rows with CALayer turned on OR when i turn off CALayer in IB, i have cells drawn like that: https://i.stack.imgur.com/zMxmK.png
But when my NSTableView has more than ~50 row AND i turn on CALayer in IB, i have cells drawn like that: https://i.stack.imgur.com/IMyIP.png
How can it be? I break my had :(