Howdy all. I have a funny feeling this have been covered before, but it's early on a saturday and my data processing skills aren't the best right now
I want to find out have big a String will be when I draw with a set of attibutes in an NSCell. sizeWithAttrubutes: works, except for that my NSCell subclass has a maxWidth, so if the String is too big, it begins to wrap. But sizeWithAttributes: doesn't take into account trying to draw the String in a boundede environment like that, so it never returns an NSSize with a height different between a 10 letter word and a 100 letter word.
I'm guesing I can have some fun String parsing ahead of me. Anyone got any code already written or posted somewhere? If not, I'll just get down an dirty with NSString again.
Anyone, this sounds like a good addition for Apple to add to the NSString class.