andrefurquin
andrefurquin

Reputation: 522

Populating NSTableView in OS X Application

I'm learning to develop OS X application. I created a simple application that populates a table with itens. I've been trying to populate my NSTableView with no success. I don't know what I'm doing wrong. I've got an array of 3 itens. The example is very simple.

Here is the code on github:

https://github.com/mcand/TableViewMacExample

Hope anyone can help me out.

Upvotes: 1

Views: 333

Answers (1)

Daniyar
Daniyar

Reputation: 3003

For use -(id)tableView:(NSTableView *)tableView objectValueForTableColumn:(NSTableColumn *)tableColumn row:(NSInteger)row delegate method your cell must be the subclass of NSCell-class. And NSTableView must be Cell-based as well.

Upvotes: 1

Related Questions