Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

NSView -dataWithPDFInsideRect: and layer borders

I'm using -dataWithPDFInsideRect: with an NSView that has many subviews. It works fine but doesn't render any of the subview's layer properties like borders. Is there a way to get that to work?

like image 422
Berry Blue Avatar asked Oct 28 '15 01:10

Berry Blue


1 Answers

Add:

((NSView *)self.window.contentView).wantsLayer = YES;
like image 163
Roy K Avatar answered Oct 20 '22 06:10

Roy K