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
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
How are you "adding elements to the XML document"? If you're calling
add... methods on the NSXML... objects, you'd expect the sort of
results you're seeing -- AFAIK the proxy tree maintained by the
NSTreeController has no way of knowing that you changed the underlying
data model, since AFAIK KVO i
I'm using NSOutlineView and NSTreeController to display and edit an
NSXMLDocument on Mac OS X 10.5. The application uses bindings and is
based on the "Using Tree Controllers with NSXML Objects" example in
the Tree-Based XML Programming Guide. I get some strange behavior when
I add elements