Re: Crash in datasource method when closing document
Re: Crash in datasource method when closing document
- Subject: Re: Crash in datasource method when closing document
- From: Michael Babin <email@hidden>
- Date: Thu, 10 Oct 2013 06:56:05 -0500
On Oct 10, 2013, at 6:45 AM, Shane Stanley <email@hidden> wrote:
>
> On 10 Oct 2013, at 9:39 PM, Michael Babin <email@hidden> wrote:
>
>> Given the use of the data source protocol to provide the data to the outline view and the "Revert Changes" option, my first suspect would be the data provided to the outline view. Perhaps the underlying data has changed and the outline view has not been told to reload its data?
>
> I have a reloadData in readFromURL::: when it's a revert.
>
>> If the outline view has been told to reload its data, perhaps there is some problem with the other data source methods (outlineView:numberOfChildrenOfItem: or outlineView:child:ofItem:) and their return values?
>
> They seem fine. But after I call reloadData, the next dataSource method called is outlineView:objectValueForTableColumn:byItem:, and the item argument is nonsense. I'd assumed outlineView:numberOfChildrenOfItem: would be called after reloadData, but that doesn't seem to be happening.
I would have also assumed that outlineView:numberOfChildrenOfItem: would be called after reloadData. Perhaps check that reloadData is sent to the correct outline view (outlet connected? Same value as in the data source callback?).
_______________________________________________
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