I am using the trio of NSLayoutManager, NSTextStorage & NSTextContainer
to render text in a layer-backed NSView
.
I am under the impression that the view will be more performant if I can override wantsUpdateLayer
to return true and thus be using layers more fully. Is this true?
However, all examples I have seen of using NSLayoutManager
say that you need to place the following call within drawRect
:
layoutManager.drawGlyphsForGlyphRange(glyphRange, atPoint: NSMakePoint(0, 0))
How would you perform the equivalent call within updateLayer
or some other more layer-oriented place instead?