On 19 Sep 2018, at 07:16, Quincey Morris <email@example.com> wrote:
On Sep 18, 2018, at 01:47 , Gerriet M. Denkmann <firstname.lastname@example.org> wrote:
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.
The problem: if the TableView does *not* have a definite height, then Xcode complains: “The ScrollView needs y-position or height fixed”.
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.”
So I am going to implement this.
Thanks a lot.