Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

Starfox

macrumors 6502
Original poster
Apr 7, 2011
256
9
I have a view-based NSTableView and when the selection changes I send a reloadData message to it. When it was cell-based the selected rows would maintain their highlight, after I moved it to being view-based the selected rows no longer keep their highlight. Any ideas?
 
If you're using bindings, does the array controller have the "preserve selection" attribute checked in IB?
But I think I'm seeing the same behavior where -reloadData would deselect rows even though "preserve selection" is on. It should be possible to keep a reference to the array's selected objects (via the -selectedObjects key) and select them again.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.