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!

nonamelive
  • 6,510
  • 8
  • 40
  • 47
  • 1
    what do you mean you can't create it in interface builder? Just make a custom cell and drag it into a table view. – Rich Feb 03 '11 at 14:57
  • Have a look at my [approach to use a subview](http://stackoverflow.com/questions/5884265/how-to-setup-a-nstableview-with-a-custom-cell-using-a-subview). – JJD May 05 '11 at 10:30

1 Answers1

3

Have a look at the open source PXListView class on Github

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

Abizern
  • 146,289
  • 39
  • 203
  • 257