14

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?

Berry Blue
  • 15,330
  • 18
  • 62
  • 113

1 Answers1

3

Add:

((NSView *)self.window.contentView).wantsLayer = YES;
Roy K
  • 3,319
  • 2
  • 27
  • 43