How do you create a text label, how many rows are in the table
2 answers
Assuming the NSTableView columns are bound to the NSArrayController, you can bind the value of the NSTextField label to the array controller using the "builtObjects" controller key and the key path @count
. If you want to bind a text field to something like "x rows" where x is the number of rows, you must bind "Display Pattern Value1" to the same (ordered objects. @Count) and use "% {value1} @rows" as a display template.
+2
source to share