Pregunta

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

enter image description here

then when I resize the window the row is not getting resized to fit the content

enter image description here

does anyone know how to deal with this problem?!

Any kind of help is highly appreciated!

¿Fue útil?

Solución

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.

Licenciado bajo: CC-BY-SA con atribución
No afiliado a StackOverflow
scroll top