1
votes

I have a view based NSTableView set up. It uses a datasource and NOT bindings. I have the protocol all set up right and it works if I use a text field. However I'm trying to change the last column into a combo box. I think I need to use an custom NSTableCellView but I'm not really sure how to do that. Any help on how to set it up would be great.

1

1 Answers

2
votes

Wherever you have your NSTableView delegate set, hopefully you have a corresponding tableView:dataCellForTableColumn:row: method to go with it.

If you do, then giving it a combo box might be as easy as creating an IBOutlet pointing to a NSCell object with a combo box dropped into it.

And when that dataCellForTableColumn method is called and the NSTableColumn is equal to the column you want to return the combo box for, then return that special NSCell.

How does that sound so far?