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 05:39:01 -0500
On Oct 10, 2013, at 12:06 AM, Shane Stanley <email@hidden> wrote:
> I have a document-based app, and it saves as a package. The document's window contains an outline view, where the user can drag items from the Finder or create new folders, and these will be saved to the package. I'm creating file wrappers of the items, stored in a property of the document. That's all working OK.
>
> The problem I'm having is that if I open a file, then add an item, say a folder, then click the close button and choose Revert Changes, I (nearly always) get an exception thrown on the outline view's datasource method -outlineView:objectValueForTableColumn:byItem:. It doesn't happen if the outline view is hidden. I'm using ARC.
>
> Any thoughts on where to start?
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? 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?
_______________________________________________
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