Re: Difficulty Calling NSTableView's validateDrop: Method for Unit Testing

2012-02-07 Thread Dave Fernandes
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

Re: Difficulty Calling NSTableView's validateDrop: Method for Unit Testing

2012-02-07 Thread Mark Szymczyk
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

Difficulty Calling NSTableView's validateDrop: Method for Unit Testing

2012-02-06 Thread Mark Szymczyk
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