How do I tell the NSTableView not to resize all other columns when showing / hiding a column?

I have an NSTableView and I have the option for the user to show or hide columns dynamically (with a post-style header context menu).

My problem is that if the table view is currently wider than the scroll view (i.e. it displays a horizontal scroll bar), when the column is hidden or shown, it resizes each visible column so that they all fit on the screen again. How do I do it, well, not. I just want the hidden / shown column to be hidden / shown without changing the other columns.

I tried setting the column resize style to: None - builder, but that had no effect.

+1


a source to share


1 answer


You can do this by selecting each column separately in IB and unchecking the Attributes-> Resizes With Table checkbox.



+3


a source







All Articles