View and Cell based NSTableView

爷,独闯天下 提交于 2019-12-05 18:20:57

short answer:

A cell can contain only one UI element like a text cell, image view cell, button cell and a few more. The customization ability is quite poor.

A view can contain multiple UI elements as well as other views. The customization ability is almost infinite.

Apple recommends to use always view based table views

NSCell is a lighter weight object and was a solution when it was a concern to have too many NSView objects. Think more than a decade ago. Cells are deprecated. Use views.

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