@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.
by Michael — Oct 14
Ie. the NSAttributedString boundingRectWithSize:options: is way slower since it doesn't cache any data and regenerates the glyphs every time it's called.