get the drawing text height

2009-01-26 Thread David Alter
I'm drawing a string to screen and I want to get the height if I specify a specific width. I'm drawing the string by using the NSString drawInRect: withAttributes:. I do not see how I can get the height after the text has wrapped. I have looked at NSString sizeWithAttributes, but there does not

Re: get the drawing text height

2009-01-26 Thread Nick Zitzmann
On Jan 26, 2009, at 11:45 AM, David Alter wrote: I'm drawing a string to screen and I want to get the height if I specify a specific width. I'm drawing the string by using the NSString drawInRect: withAttributes:. I do not see how I can get the height after the text has wrapped. I have

Re: get the drawing text height

2009-01-26 Thread James Walker
David Alter wrote: I'm drawing a string to screen and I want to get the height if I specify a specific width. I'm drawing the string by using the NSString drawInRect: withAttributes:. I do not see how I can get the height after the text has wrapped. I have looked at NSString sizeWithAttributes,