What methods should be implemented?
I’ve tried to set the TableDataSource as a delegate to my TableView, but delegate methods wasn’t called. After that I tried to set “TableDataSource” as delegate in code, and got this warning:
warning: class ‘TableDataSource’ does
not implement the ‘NSTableViewDelegate’ protocol
Delegate methods still not called.
Make sure your interface start looks like this:
@interface TableDataSource : SomeSuperclass <NSTableViewDelegate>(where
SomeSuperclassis your actual superclass)That should get rid of the warning, at any rate.