What is considered the best way to handle multiple NSTableViews without using Cocoa Bindings?
In my application, I have two NSTableViews that are closely related to the fact that I use the same object as the delegate and dataSource for both. The problem is that tableViews reference the same methods. I am currently distinguishing between two table views based on NSControl -tag.
The deeper I get into this code, the more fun it will be to use -tag. I end up creating mostly duplicate code to distinguish between tableViews in each delegate / dataSource method. The code ends up explicitly non-object oriented.
I could create a separate object to handle one or the other tableView, but creating the specified object would be pretty much an artificial construct to provide a separate delegate / data source.
Does everyone just use Cocoa Bindings now? I avoid Bindings because I would like to hone my Cocoa skills with the methods that are passed between Mac OS and iPhone.
cocoa
Jay o'conor
source share