Re: number of rows for an attributed string
Re: number of rows for an attributed string
- Subject: Re: number of rows for an attributed string
- From: Jayson Adams <email@hidden>
- Date: Wed, 21 Nov 2007 10:36:41 -0800
On Nov 20, 2007, at 7:13 PM, Mitchell Livingston wrote:
Hello,
I want to display an attributed string in a table row, simulating
10.5's Console where the row expands to allow multiple text rows in
a single table cell. I am having trouble determining the number of
rows the attributed string will take, however. I looked into
NSString's boundingRectWithSize:options:attributes:, but that
didn't seem to work. Any help would be appreciated.
If you're just needing to get the size of the attributed string, you
can say
[attributedString size]
(the size method is documented in NSAttributedString Application Kit
Additions Reference, in the Application Kit Framework Reference).
Best,
__jayson
Circus Ponies NoteBook - Organization for a Creative Mind
www.circusponies.com
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden