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?
Asked
Active
Viewed 464 times
14

Berry Blue
- 15,330
- 18
- 62
- 113
-
Is the border value negative or postive? – Amin Negm-Awad Dec 07 '15 at 09:47
-
So, maybe it is a clipping problem? Are there other properties definetly not influenced by clipping? – Amin Negm-Awad Dec 07 '15 at 13:39
1 Answers
3
Add:
((NSView *)self.window.contentView).wantsLayer = YES;

Roy K
- 3,319
- 2
- 27
- 43
-
1
-
@BerryBlue I was sure it was UIView, edited my answer accordingly. That is the equivalent of clip to bounds in iOS. – Roy K Dec 12 '15 at 20:46
-
@BerryBlue did you make sure to add this where you create the NSView? Also, can you share some code? – Roy K Dec 12 '15 at 21:43