Re: NSTableView automatic column size
Re: NSTableView automatic column size
- Subject: Re: NSTableView automatic column size
- From: Varun Chandramohan <email@hidden>
- Date: Thu, 03 Jul 2014 00:44:44 +0000
- Thread-topic: NSTableView automatic column size
Thanks Ken, I was missing constrains that was causing the issue. I see the
document states that Xcode will not complain if there are not enough
constrains. It would have helped of it did. I didnĀ¹t realise the problem
was constrains. Do you know why this behaviour and if possible someway to
enable Xcode from throwing up warning at least?
Regards,
Varun
On 2/07/2014 1:59 pm, "Ken Thomases" <email@hidden> wrote:
>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/Ta
>>bleView/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