brianleahy
Colonel Panic
I'm writing a program in Cocoa, and I want to produce the effect of a last row in an NSTableView that will display totals of the numeric columns in the remainder of the view.
It'd be relatively easy to have it appear as the last line below the regular data, but that's not what I want.
In essence, I want something like an NSTableHeaderView that will sit at the bottom of the view, scroll horizontally but never vertically, and display the totals.
The approach I am trying is this: I've created a second NSTableView, only 1 row tall, and parked it underneath the main NSTableView. I turn OFF the horizontal scroller for the "mainView", and turn ON the horizontal scroller for the "totalView". It looks good, and displays the totals -- but now I want the totalView's horizontal scroller to control the horizontal scrolling of BOTH views.
Alas, the NSTableView class does not seem to have methods to access its horizontal scroller.
Can anyone suggest a solution? Or a whole new approach? Pleeze?
It'd be relatively easy to have it appear as the last line below the regular data, but that's not what I want.
In essence, I want something like an NSTableHeaderView that will sit at the bottom of the view, scroll horizontally but never vertically, and display the totals.
The approach I am trying is this: I've created a second NSTableView, only 1 row tall, and parked it underneath the main NSTableView. I turn OFF the horizontal scroller for the "mainView", and turn ON the horizontal scroller for the "totalView". It looks good, and displays the totals -- but now I want the totalView's horizontal scroller to control the horizontal scrolling of BOTH views.
Alas, the NSTableView class does not seem to have methods to access its horizontal scroller.
Can anyone suggest a solution? Or a whole new approach? Pleeze?