What is the easiest way to custom NSTableView cell

2019-07-20 02:26发布

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条回答
孤傲高冷的网名
2楼-- · 2019-07-20 02:43

Have a look at the open source PXListView class on Github

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

查看更多
登录 后发表回答