What is the easiest way to custom NSTableView cell?
Asked Answered
T

1

2

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!

Thaddeusthaddus answered 3/2, 2011 at 14:45 Comment(2)
what do you mean you can't create it in interface builder? Just make a custom cell and drag it into a table view.Pythoness
Have a look at my approach to use a subview.Oberstone
M
3

Have a look at the open source PXListView class on Github

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

Methodize answered 3/2, 2011 at 16:11 Comment(1)
Thank you so much for this! PXListView is awesome!Thaddeusthaddus

© 2022 - 2024 — McMap. All rights reserved.