• 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: NSTableView automatic column size
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSTableView automatic column size


  • Subject: Re: NSTableView automatic column size
  • From: Ken Thomases <email@hidden>
  • Date: Tue, 01 Jul 2014 22:59:43 -0500

On Jul 1, 2014, at 6:46 PM, Varun Chandramohan wrote:

> I have a NSTableView (View based) with 8 NSTableColumn each of which has NSTableCellView as default built from IB. I followed apple guide https://developer.apple.com/library/mac/documentation/Cocoa/Conceptual/TableView/Introduction/Introduction.html#//apple_ref/doc/uid/10000026i-CH1-SW1 and populated the table programatically as specified in the guide. This seem to work properly. I noticed that one or more columns are populated with strings that are large and so the view seem to cut them off with "Blah..." which  is understandable. However when I resize the that column to see the rest of the string I only see "Blah...". Its as if only a part of the string was populated into the NSTextField as part of NSTableCellView. I did not find any information on this in the guide. Any pointers? I would have expected this to be the default behaviour.

The table view will change the width of the cell view.  However, you're responsible for configuring the text field within the cell view so that it changes width with the cell view.  You would do that with either autoresizing masks or autolayout, depending on which you're using.

Regards,
Ken


_______________________________________________

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: NSTableView automatic column size
      • From: Varun Chandramohan <email@hidden>
References: 
 >NSTableView automatic column size (From: Varun Chandramohan <email@hidden>)

  • Prev by Date: NSTableView automatic column size
  • Next by Date: UIBarButtonItem question.
  • Previous by thread: NSTableView automatic column size
  • Next by thread: Re: NSTableView automatic column size
  • Index(es):
    • Date
    • Thread