How can I calculate the height of a string within a particular label (NSTextField), for some given fixed width?
I Googled up various methods and tried this method fr
Take a look at the NSString Application Kit Additions Reference. It seems like – sizeWithAttributes: or – boundingRectWithSize:options:attributes: could do what you want.
– sizeWithAttributes:
– boundingRectWithSize:options:attributes: