How to update NSTableView without using -reloadData?

前端 未结 5 1839
猫巷女王i
猫巷女王i 2021-02-02 15:29

I am new to the Mac. I am trying to update a particular cell in NSTableView without using -reloadData, as -reloadData updates the whole table. I have t

5条回答
  •  眼角桃花
    2021-02-02 15:37

    Usually, updating the whole table via reloadData: is the correct design pattern. Why are you averse to doing so? Is it for efficiency reasons, or are you relying on the table to save some state and reloading all the data interferes with that? The latter is usually a sign that you need to rethink your architecture.

提交回复
热议问题