Displaying row index in an NSTableView bound to NSArrayController

后端 未结 3 1301
一生所求
一生所求 2021-02-09 13:18

I have an NSTableView which is bound to an NSArrayController. I would like to have one of the table columns showing the index of the table row. This is easy enough to do when yo

3条回答
  •  清歌不尽
    2021-02-09 13:52

    As I understand it, you could choose not to bind that table column, and use a datasource instead. I recall NSTableView supports this sort of "dual mode" operation, but can't find any docs to confirm it.

提交回复
热议问题