On Oct 10, 2013, at 12:06 AM, Shane Stanley <sstan...@myriad-com.com.au> 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 (Cocoa-dev@lists.apple.com)

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 arch...@mail-archive.com

Reply via email to