• 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: Auto-resizing column based on the data inside it?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

References: 
 >Auto-resizing column based on the data inside it? (From: Rob Petrovec <email@hidden>)

  • Prev by Date: Re: Southern California Coders?
  • Next by Date: Re: Southern California Coders?
  • Previous by thread: Auto-resizing column based on the data inside it?
  • Next by thread: Re: Making a window fit its contents?
  • Index(es):
    • Date
    • Thread