• 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: NSTextTable column width calculations?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSTextTable column width calculations?


  • Subject: Re: NSTextTable column width calculations?
  • From: Douglas Davidson <email@hidden>
  • Date: Fri, 5 Oct 2007 09:08:48 -0700


On Oct 5, 2007, at 2:47 AM, Kai BrĂ¼ning wrote:

Programmatically controlling column width is no big deal (by setting the width of all NSTextTableBlocks of that column), but what is the best way to first determine the maximum width of any text in that column?

You can go through the text using -rangeOfTextBlock:atIndex: to get ranges for the blocks. You can use e.g. - boundingRectWithSize:options: to calculate sizes.


Douglas Davidson

_______________________________________________

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


References: 
 >NSTextTable column width calculations? (From: Kai BrĂ¼ning <email@hidden>)

  • Prev by Date: Re: Is ZLib available in Cocoa?
  • Next by Date: Re: Nib & retainCount confusion
  • Previous by thread: NSTextTable column width calculations?
  • Next by thread: Problem using multiple stores with CoreData
  • Index(es):
    • Date
    • Thread