I found a solution. The solution was to create a second mock object that
implements the NSTableViewDataSource protocol and use that mock object to call
validateDrop:.
Mark
___
Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
Please do not post admi
tableView:validateDrop:proposedRow:proposedDropOperation: is an
NSTableViewDataSource method (not an NSTableView method). So whatever class is
implementing the data source methods is probably the class you want to test
with your unit test code.
Dave
On 2012-02-06, at 9:22 PM, Mark Szymczyk wro
I'm trying to unit test drag and drop rearranging of items in a table view. In
my unit testing code I have an object of a NSDocument subclass.
MyDocument* testDoc;
The NSDocument subclass has a table view outlet.
IBOutlet NSTableView* myTableView;
I start my unit test by creating a mock object