// We return a custom NSTextFieldCell, in order to perform some custom painting in its drawWithFrame event handler.
// We are lazy and re-use the same cell, because we keep getting this event called for each drawn cell, sequentially.
static cc As ListBoxTV_Support.ListDrawCellHandler
This works fine usually, but when collapsing or expanding a row in the outline view, all cells show the same value for a split second for as long as the collapse/expand animation is ongoing.
Changing to
dim cc As ListBoxTV_Support.ListDrawCellHandler
Solves the issue, and the repeated allocation isn't a huge performance hit (for a moderate-sized list).
This only applies for a hierarchical list, as far as I can tell.
In ListBoxTV.dataCell:
This works fine usually, but when collapsing or expanding a row in the outline view, all cells show the same value for a split second for as long as the collapse/expand animation is ongoing.
Changing to
Solves the issue, and the repeated allocation isn't a huge performance hit (for a moderate-sized list).
This only applies for a hierarchical list, as far as I can tell.