Reputation: 22820
OK, this is my situation :
NSMutableArray
bound to an NSTableView
, via an NSArrayController
.NSArrayController
's selectNext:
and selectPrevious:
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?
Upvotes: 8
Views: 3735
Reputation: 46543
There is a method in NSTableView
- (void)scrollRowToVisible:(NSInteger)row;
That will scroll to the specified row
.
Upvotes: 19