The reason for this problem is due to constraints. If you are using NSTableCellView under NSTableColumn, then you need to set constraints for NSTableCellView. Highlight NSTableCellView and click on "Resolve Auto-layout issue" and click on "Add missing constraints in the container". This will fix the issue.
How to make NSTableView column fit its content on resize?
-
30-06-2023 - |
Question
Im my app I have NSTableView (view based) and when I add the value that is too long to the last column
first it "hits" the scroller
then when I resize the window the row is not getting resized to fit the content
does anyone know how to deal with this problem?!
Any kind of help is highly appreciated!
Solution
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow