Re: NSTableView: bindings with drag and drop
Re: NSTableView: bindings with drag and drop
- Subject: Re: NSTableView: bindings with drag and drop
- From: Chuck Soper <email@hidden>
- Date: Thu, 24 Jan 2013 18:46:57 -0800
- Thread-topic: NSTableView: bindings with drag and drop
On 1/24/13 6:30 PM, "Quincey Morris" <email@hidden>
wrote:
>On Jan 24, 2013, at 18:11 , Chuck Soper <email@hidden> 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@hidden)
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:
This email sent to email@hidden