NSBrowser redraw issues with multiple selection
NSBrowser redraw issues with multiple selection
- Subject: NSBrowser redraw issues with multiple selection
- From: "Martin Redington" <email@hidden>
- Date: Thu, 7 Aug 2008 17:43:20 +0100
Here's another NSBrowser issue (this is on Leopard, BTW)
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
colour.
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 ...
--
http://www.mildmanneredindustries.com/
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden