On 1/24/13 6:30 PM, "Quincey Morris" <[email protected]> wrote:
>On Jan 24, 2013, at 18:11 , Chuck Soper <[email protected]> wrote: > >> If I do not implement numberOfRowsInTableView: and >> tableView:objectValueForTableColumn:row: then this error is written to >>the >> console: >> >> *** Illegal NSTableView data source (< MyCustomView: 0x1019ab7b0>). >>Must >> implement numberOfRowsInTableView: and >> tableView:objectValueForTableColumn:row: > >What version of OS X, BTW? The app requires the 10.8 SDK. > >It's clearly documented that they're optional in your situation, and the >documentation is 10.7-vintage. The 10.8 SDK header file also says they're >optional. They may not be optional pre-10.7, or the log message is >spurious, or you've done something in your table view configuration that >makes the table *think* it needs these data source methods. Yes, the methods are optional. But, if I implement drag and drop, then I need to conform to the NSTableViewDataSource protocol which causes the methods to be required. I suppose the only solution is to implement numberOfRowsInTableView: andtableView:objectValueForTableColumn:row:, and return 0 and nil, respectively. >However, as you say, it isn't critical, and it's almost certainly not >your fault. Perhaps, nothing is wrong is my solution. 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]
