Go Back   MacRumors Forums > Apple Systems and Services > Programming > Mac Programming

Thread Tools Search this Thread Display Modes
Old Nov 26, 2012, 01:55 PM   #1
macrumors regular
Join Date: Apr 2011
View-based table view losing selection highlight

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?
Starfox is offline   0 Reply With Quote
Old Nov 28, 2012, 01:02 AM   #2
macrumors 6502a
Join Date: Mar 2009
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.
jeanlain is offline   0 Reply With Quote

MacRumors Forums > Apple Systems and Services > Programming > Mac Programming

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Similar Threads
thread Thread Starter Forum Replies Last Post
Table View to Detail View hammy35 iPhone/iPad Programming 3 Apr 16, 2014 01:33 AM
Find location of table view cell that calls view controller moonman239 iPhone/iPad Programming 3 Nov 24, 2012 05:31 PM
View based table view layout woes Starfox Mac Programming 0 Nov 8, 2012 10:50 PM
Pushing to a Detail View from a Table View Cell using Xcode Storyboard xcodeApp10 iPhone/iPad Programming 2 Sep 17, 2012 03:45 PM
Idea: View-Based Notifications (Instead of Focus-Based) faroZ06 OS X 10.8 Mountain Lion 0 Jul 28, 2012 12:32 PM

Forum Jump

All times are GMT -5. The time now is 09:44 PM.

Mac Rumors | Mac | iPhone | iPhone Game Reviews | iPhone Apps

Mobile Version | Fixed | Fluid | Fluid HD
Copyright 2002-2015, MacRumors.com, LLC