High Sierra > NSTableView > HeaderCell: new height is an issue

Problem:


In macOS High Sierra, the height of the header cell of NSTableView instances has changed (it's higher).


It's a problem if you have a NSTableView instance with a fixed and predefined number of rows and you have set the height of the table view in the xib/nib to be the exact one required to display all the rows and the headers.


Because in High Sierra, the table view is now truncated vertically and a vertical scroller is accordingly displayed.


Question:


Is this change a bug or a regression we will have to deal with?


Bug already reported: Problem ID# 33246978

Have you evaluated how much higher ?

~7 pixels.


Previous height: 17

New height: 24


Measured with the cmd + shift +4 screenshot command so this may not be the exact values.

I made the comparison between

XCode 7.3 MacOS 10.11.6

and

XCode 8.3.2 macOS 10.12.5 (Sierra)


I notice the header height increase. : 23 pixels (as seen in size inspector of Table Header View) vs 17.

So it's not linked to high Sierra, but more probably to XCode8


May be you can adapt the height programmatically ?

Look here :

h ttps://stackoverflow.com/questions/34661793/setting-tableheaderview-height-dynamically


Just discovered something that may help :

In IB, select table Header View

In size Inspector, select "Intrinsic size " : PlaceHolder

Then you can modify the height.n I had also to change the vertical compression to 749 for the change to appear. IB is really whimsical in accepting the change or not.


not sure if it will show at runtime !

o I'm using Xcode 6 on OS X 10.10 to build the application. You can not select the Header View with this version.


o I'm not sure code for UIKit is going to be helpful for an AppKit issue.


o I'm not using Auto-layout.


I will check how this looks like on Sea-Level Sierra. Yes, if this change is to stay, I will have to dynamically change the height of the NSTableView.

High Sierra > NSTableView > HeaderCell: new height is an issue
 
 
Q