What is the easiest way to custom NSTableView cell?

半世苍凉 提交于 2019-12-11 01:43:57

问题


I'm an iOS developer. I recently started my Mac project, but I found that unlike UITableViewCell, which is a subclass of UIView, the cell of NSTableView is NSCell, and I even can't create it in IB. I wonder if there are some easy ways to create subclass like NSTextFieldCell to put it into the NSTableView.

Any help would be appreciated! Thanks!


回答1:


Have a look at the open source PXListView class on Github

This has a PXListViewCell that you can use as an example.



来源:https://stackoverflow.com/questions/4887559/what-is-the-easiest-way-to-custom-nstableview-cell

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