• 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 22:45:56 +1100

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.

--
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


  • Follow-Ups:
    • Re: Crash in datasource method when closing document
      • From: Michael Babin <email@hidden>
References: 
 >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: collection of applications
  • 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