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
I encountered this same problem with a view-based outline view, where calling -reloadItem:
seems to just not do anything. This definitely seems like a big bug, though the documentation doesn't explicitly say that reloadItem
will reacquire the views for that row.
My workaround was to call NSTableView
's -reloadDataForRowIndexes:columnIndexes:
instead, which seems to work as expected, triggering a call to the -outlineView:viewForTableColumn:item:
delegate method for just that item. You can get the row that needs to be reloaded by calling -rowForItem:
and passing in the item you want to reload.