NSBrowser redraw issues

  • Here's another NSBrowser issue ...

    I'm allowing multiple selection in my NSBrowser.

    When my NSBrowser loses focus, the multiple selected cells correctly
    change to have a grey background, but when it regains focus, only the
    last selected cell gets updated correctly to the active selection

    If I scroll the browser or switch apps, the selected cells are
    correctly redrawn.

    I've tried forcing redrawing by calling setNeedsDisplay on the matrix,
    or  -[NSMatrix drawCellAtRow:column:]  for each cell, but this seems
    to make no difference.

    Quartz Debug shows that the last selected cell is getting redrawn, but
    that the other cells never do, as though the Browser never realises
    that the cells are dirty and need redrawing too.

    Any suggestions for how to ensure that all of the selected cells
    redraw would be great ...

previous month august 2008 next month
        1 2 3
4 5 6 7 8 9 10
11 12 13 14 15 16 17
18 19 20 21 22 23 24
25 26 27 28 29 30 31
Go to today