Re: Auto-resizing column based on the data inside it?
Re: Auto-resizing column based on the data inside it?
- Subject: Re: Auto-resizing column based on the data inside it?
- From: Jens Alfke <email@hidden>
- Date: Wed, 2 Apr 2008 21:58:39 -0700
On 2 Apr '08, at 7:05 PM, Rob Petrovec wrote:
Anyone have an idea on how to set it up so that the column will auto-
resize itself based on the text inside it?
As far as I know you have to do it yourself. You need to get the
columns' data cell, set its value to each row's object in turn (i.e.
the string the column would display for that row), and ask it for its
preferred width. Then get the maximum of those and set the column's
width accordingly.
—Jens
Attachment:
smime.p7s
Description: S/MIME cryptographic signature
_______________________________________________
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