Design Element
Comment on "Cocoa Sample Code: SimplePicture"
by Qwerty Denzel — Sep 30
@Cocoa Novice

You could try implementing the NSSplitView delegate method -splitViewDidResizeSubviews: to test whether the first subview (NSTableView and its scroll-view in this case) is collapsed (using -isSubviewCollapsed:), and if so then change an instance variable to store the scroll position ([[[tableView enclosingScrollView] verticalScroller] floatValue]), which you probably would have had to have gotten already in -splitViewWillResizeSubviews.
Whew. I hope that helps (and that it's the best method).
Back to "Cocoa Sample Code: SimplePicture"
Design Element

Copyright © Scott Stevenson 2004-2015