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: Mitchell Livingston <email@hidden>
- Date: Wed, 21 Nov 2007 10:53:16 -0800
This works to determine the height and width, but I want to know what the height is when the width is restricted to a certain value.
Thanks,
Mitch
On Wednesday, November 21, 2007, at 01:37PM, "Jayson Adams" <email@hidden> wrote:
>
>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