Dr.Kameleon
Dr.Kameleon

Reputation: 22820

Scroll NSTableView to selection

OK, this is my situation :

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

Answers (1)

Anoop Vaidya
Anoop Vaidya

Reputation: 46543

There is a method in NSTableView

- (void)scrollRowToVisible:(NSInteger)row;

That will scroll to the specified row.

Upvotes: 19

Related Questions