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 (Cocoa-dev@lists.apple.com)

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:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to