On 19 Sep 2018, at 07:16, Quincey Morris <quinceymorris@...> wrote:
On Sep 18, 2018, at 01:47 , Gerriet M. Denkmann <g@...> wrote:
The problem: if the TableView does *not* have a definite height, then Xcode complains: “The ScrollView needs y-position or height fixed”.
Keep in mind that UITableView is a kind of UIScrollView, which isn’t how NSTableView works. Your intended solution nests a scroll view within a scroll view, which is kind of hard to know how to lay out satisfactorily.
Steve’s suggestion of a table view with 3 sections is a good solution.
Yes. It certainly looks better than my current work-around:
NSLayoutConstraint *heightConstraint = self.tableView.constraints.firstObject; heightConstraint.constant = nbr of rows in table * row height;
The documentation says: “See the Settings application for examples of grouped tables.”