• 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
Crash in datasource method when closing document
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Crash in datasource method when closing document


  • Subject: Crash in datasource method when closing document
  • From: Shane Stanley <email@hidden>
  • Date: Thu, 10 Oct 2013 16:06:18 +1100

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?


--
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>
    • Re: Crash in datasource method when closing document
      • From: Jerry Krinock <email@hidden>
    • Re: Crash in datasource method when closing document
      • From: Kyle Sluder <email@hidden>
  • Prev by Date: Re: NSDocument read from file, force save to different file
  • Next by Date: Re: Crash in datasource method when closing document
  • Previous by thread: Re: NSDocument read from file, force save to different file
  • Next by thread: Re: Crash in datasource method when closing document
  • Index(es):
    • Date
    • Thread