When I use bindings for NSTableView and implement drag and drop, an
"Illegal NSTableView data source" error is written to the console. This is
because I use NSTableViewDataSource methods to implement drag and drop.
I'm able to prevent the error message if I declare these bogus
NSTableViewDataSource protocol methods:
- (NSInteger)numberOfRowsInTableView:(NSTableView *)aTableView
{ return 0; }
- (id)tableView:(NSTableView *)aTableView
objectValueForTableColumn:(NSTableColumn *)aTableColumn
row:(NSInteger)rowIndex
{ return nil; }
Everything seems to work fine. Has anyone else encountered this issue?
Is there a better way to avoid this error message? Or, is this considered
a bug?
Thanks,
Chuck
_______________________________________________
Cocoa-dev mailing list ([email protected])
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com
This email sent to [email protected]