NSOutlineView reloadItem: has no effect

后端 未结 4 1106
孤独总比滥情好
孤独总比滥情好 2020-12-29 07:30

I\'m trying to release some strain on a view-based NSOutlineView for which I changed a single item property and which I initially reloaded just fine using

4条回答
  •  余生分开走
    2020-12-29 08:15

    This really isn't a bug - it was something I had explicitly designed. My thought was that reloadItem (etc) should just reload the outline view item properties, not the table cell at that item, since it doesn't carry enough specific information on what to reload (such as what specific cell you might want reloaded). I had intended for people to use reloadDataForRowIndexes:columnIndexes: to reload a particular view based tableview cell; we usually don't provide cover methods when the base class can easily do the same thing with just a few lines of code.

    However, having said that, I know multiple people have gotten confused about this, and most people expect it to reload the cell too.

    Please log a bug requesting Apple to change this.

    thanks, -corbin

提交回复
热议问题