Okay, so I'd like to implement something similar to this image using NSMatrix.
My "table" will be large (scrollable in both directions).
I realize the prerequisite that NSMatrix cells are all the same size.
Here's a proposed solution:
I would embed the white cells in a NSClipView/NSScrollView, with visible scrollers. I would also embed the top and left matrices similarly but with separate NSClipView/NSScrollView pairs, without visible scrollers.
Then, the main visible NSScrollView would notify the other NSScrollView's of movement as appropriate.
Is this a typical solution to this issue? Or is there some other custom-ish view I'm unaware of?
One other thing: if the content of the main NSMatrix is bound to an NSArrayController, how is the 2D-ness of the matrix fleshed out with a single-dimension NSArray?
确实有一些自定义的视图: LIGridControl , MBTableGrid
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.