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

NSTextTable column width calculations?


  • Subject: NSTextTable column width calculations?
  • From: Kai BrĂ¼ning <email@hidden>
  • Date: Fri, 5 Oct 2007 11:47:24 +0200

Hi,

I am using an NSTextTable to display (and edit) some tabular data. The nature of this data calls for some columns to adjust their width to the maximum width of the unwrapped text contained in any cell of these columns, while other columns just use what's left over.

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?

And as a side question, what is the meaning of NSTextTableLayoutAlgorithm, which can be set to NSTextTableAutomaticLayoutAlgorithm or NSTextTableFixedLayoutAlgorithm? May this help me with my task in any way?

Thanks in advance
Kai
_______________________________________________

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: NSTextTable column width calculations?
      • From: Douglas Davidson <email@hidden>
  • Prev by Date: Re: NSObjectInaccessibleException -- CoreData could not fulltill a fault
  • Next by Date: Re: multiple methods named 'xxx' found.
  • Previous by thread: Re: NSObjectInaccessibleException -- CoreData could not fulltill a fault
  • Next by thread: Re: NSTextTable column width calculations?
  • Index(es):
    • Date
    • Thread