brendand / mbtablegrid

An NSControl subclass which provides a spreadsheet-style table grid
9 stars 3 forks source link

Should refactor to use views instead of cells #37

Open Dejal opened 9 years ago

Dejal commented 9 years ago

This is a biggie: Apple has said that cells will be deprecated in a future OS version, so it would be a good idea to refactor this control to use views (controls) instead of cells.

It wouldn't be trivial, but may not be as big a job as it might sound, since the cells have corresponding controls, so would just need to work on displaying them efficiently.

brendand commented 9 years ago

NSCells use way less memory than views. That's why I switched to using an NSCell based NSTableView instead of an NSView based NSTableView. With view based cells, rather than one NSView per column, there was one NSView per cell in the visible rows range, so it used quite a bit of memory. And performance suffered greatly. At least in my app. So switching to NSCells was way better for memory use and performance for me.