Re: NSTableView: bindings with drag and drop
Re: NSTableView: bindings with drag and drop
- Subject: Re: NSTableView: bindings with drag and drop
- From: Aaron Montgomery <email@hidden>
- Date: Thu, 24 Jan 2013 18:55:08 -0800
On Jan 24, 2013, at 6:46 PM, Chuck Soper <email@hidden> wrote:
> On 1/24/13 6:30 PM, "Quincey Morris" <email@hidden>
> wrote:
>
>> 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.
Maybe toss an assertion into those methods to see if anyone is actually trying to call them (I'm guessing no one is, but you never know). If someone is (either now or in the future), it will be easier to debug the problem with the assertion than when the caller tries to use the bad data and chokes on it.
Aaron
_______________________________________________
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