Theocacao
Leopard
Design Element
Comment on "Core Animation Isn't Just for Animation"
by Michael — Oct 14
@Scott: thanks for the tips. I'm not using NSCell's per-se, just using the NSCell text rendering/measuring capabilities. The reason I'm doing it this way is that I found the NSCell to be the most reliable (and fast) way of getting measurements of word-wrapped attributed strings (I'd love to be proven wrong on this).

Ie. the NSAttributedString boundingRectWithSize:options: is way slower since it doesn't cache any data and regenerates the glyphs every time it's called.
Back to "Core Animation Isn't Just for Animation"
Design Element

Copyright © Scott Stevenson 2004-2015