NSTableView, multiple cells and bindings

I am trying to create a view similar to the representation of motion properties.

Screen shot

Each of my property objects contains a cell type definition that it wants to display as. But at the same time, I would like to use the bindings so that the values ​​are automatically updated, as they can be changed elsewhere.

I tried several different approaches to the problem.

  • Multiple cells and dataCellForTableColumn:, while this allows rendering to work correctly for all types of cells, I lose the bindings.

  • NSProxy: I also tried using a proxy object, which I thought would forward all the methods to the selected cell type behind it, but again the bindings do not work here.

- ? , , ?

!

+3
1

, dataCellForTableColumn: row:? , ?

"" . , dataCellForTableColumn: row: .

: --- :)

0

Source: https://habr.com/ru/post/1718228/


All Articles