OK, this is my situation :
- I have an
NSMutableArray
bound to anNSTableView
, via anNSArrayController
. - I'm manipulating the table view's selection (trigger by keyboard), using
NSArrayController
'sselectNext:
andselectPrevious:
The thing is : The selection does change, but the table view doesn't scroll to the current selection, so that its content is visible.
What should I do? Any ideas?
[myTableView scrollRowToVisible:[myTableView selectedRow]]
(right afterselectNext:
andselectPrevious:
, it doesn't scroll to the current line, but the one either before or after it (respectively). b) even after a[myTableView scrollRowToVisible:[myTableView selectedRow]+1]
(afterselectNext:
), it does show up, but scrolling is not smooth. (HINT : The table view is not in focus). Any idea? – Baumgardner