Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Text Sizing



I have not yet been able to find any documentation on how one would find out how much vertical space I would need to display a given NSAttributedString in a given width.
That is, I have a NSAttributedString object that I am drawing with -drawInRect:. I know what width I want the rectangle to be, but I have no idea how high it should be, as the string is generated at run-time.


--
Clark S. Cox, III
email@hidden
http://www.whereismyhead.com/clark/




Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.