Design Element
Comment on "Cocoa Sample Code: SimplePicture"
by Scott Stevenson — Sep 30
@Cocoa Novice, @Qwerty Denzel: NSTableView, thankfully, makes this pretty easy. There's a -scrollRowToVisible: method, so all you need to do is get the current selection index and scroll to it.

You could probably do this in the -splitViewDidResizeSubviews: method that Qwerty Denzel mentions.
Back to "Cocoa Sample Code: SimplePicture"
Design Element

Copyright © Scott Stevenson 2004-2015