• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: number of rows for an attributed string
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: number of rows for an attributed string
      • From: Jayson Adams <email@hidden>
References: 
 >number of rows for an attributed string (From: Mitchell Livingston <email@hidden>)
 >Re: number of rows for an attributed string (From: Jayson Adams <email@hidden>)

  • Prev by Date: NSDate appears to leak
  • Next by Date: Re: CoverFlow
  • Previous by thread: Re: number of rows for an attributed string
  • Next by thread: Re: number of rows for an attributed string
  • Index(es):
    • Date
    • Thread