Is it possible to create a NSTableView
in Interface Builder that has a preset number of rows so that the table can be used as a form?
I have a view that requires a form of various labels and textfields. I've tried using single labels and textfields but it looks poor. Same with the NSForm
which additional put a couple of restrictions on layout and cell content.
So a table view looks very polished as a form view. What I would optimally like to do is drag seven TextTableViewCell
s into a static NSTableView
in IB and set labels in the first column and dynamically set values in the second column rows.
But if I build it my seven rows disappeared. How can I get an NSTableView
to act static?
As @Anc Ainu pointed out, as of OS X 10.10 it is possible to use static tableViews in OS X. You have to set the
usesStaticContents
property onNSTableView
to make it behave like a static tableView on iOS. According to the docs:Please remember that this property is one available on OS X 10.10 and later.