Looking for a spreadsheet-like control for Cocoa

醉酒当歌 提交于 2019-12-06 04:47:10

问题


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:


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!




回答2:


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



来源:https://stackoverflow.com/questions/29331806/looking-for-a-spreadsheet-like-control-for-cocoa

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!