• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Crash in datasource method when closing document
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Crash in datasource method when closing document


  • Subject: Re: Crash in datasource method when closing document
  • From: Shane Stanley <email@hidden>
  • Date: Thu, 10 Oct 2013 23:03:15 +1100

On 10 Oct 2013, at 9:51 PM, Michael Babin <email@hidden> wrote:

> From your description, it appears that you're presenting a window/sheet when the window is asked to close (Save/revert changes?). When the revert option is selected, what changes occur to the underlying data supporting the outline view?

The property holding the data is updated, and reloadData is called.
>
> Once the window/sheet is dismissed, it looks like the main/document window is asked to redraw its contents and the problem occurs there (redrawing the outline view). That probably occurs before the -windowWillClose: call takes place.

Right, that looks to be where it happens.

So before it happens, outlineView:objectValueForTableColumn:byItem: is being called regularly, and is returning my object (a file wrapper). Then when I click Revert in the dialog, I see reloadData called, then outlineView:objectValueForTableColumn:byItem: is called again, but this time the item is entirely unrelated to the outline view. And there shouldn't be an item at that stage.

--
Shane Stanley <email@hidden>
'AppleScriptObjC Explored' <www.macosxautomation.com/applescript/apps/>


_______________________________________________

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


References: 
 >Crash in datasource method when closing document (From: Shane Stanley <email@hidden>)
 >Re: Crash in datasource method when closing document (From: Jerry Krinock <email@hidden>)
 >Re: Crash in datasource method when closing document (From: Shane Stanley <email@hidden>)
 >Re: Crash in datasource method when closing document (From: Jerry Krinock <email@hidden>)
 >Re: Crash in datasource method when closing document (From: Shane Stanley <email@hidden>)
 >Re: Crash in datasource method when closing document (From: Michael Babin <email@hidden>)

  • Prev by Date: Re: Crash in datasource method when closing document
  • Next by Date: Re: Crash in datasource method when closing document
  • Previous by thread: Re: Crash in datasource method when closing document
  • Next by thread: Re: Crash in datasource method when closing document
  • Index(es):
    • Date
    • Thread