Looking for a spreadsheet-like control for Cocoa

2019-04-10 13:03发布

问题:

I'm looking for a grid view / table view / spreadsheet-type control for Cocoa and can't seem to find anything that's in any reasonable state.

I've tried using NSTableView but it's not really meant to be a single cell control.

NSCollectionView doesn't seem to be right either.

Any ideas?

回答1:

We now have NSGridView, which is most likely what any future person reading this will want to use.



回答2:

While Matt Ball's spreadsheet view (https://github.com/mattball/mbtablegrid/, mentioned above) is several years old, it does still compile on El Capitan. It must be easier as a starting point than working from scratch. There are several forks of the repository, most notable this one that does seem to be actively developed:

https://github.com/pixelspark/mbtablegrid

It seems like it would be better for those interested to pool contributions than create something new!