Re: NSTextTable column width calculations?
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