• 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 when move open document based app file to trash
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Crash when move open document based app file to trash


  • Subject: Crash when move open document based app file to trash
  • From: Jonathan Mitchell <email@hidden>
  • Date: Mon, 13 Apr 2015 14:19:17 +0100

I have a Cocoa document app that represents a sqlite backed document type (its not CoreData).
Users can (and do) delete documents while they are open in the app.
The app then crashes in the sqlite data layer whenever data access occurs.
The data layer is Mono based, not Cocoa.

I want to try and deal with this situation in a less dramatic way than a crash.

TextEdit.app can detect when an open file moves to the trash and throws up a popover - though I cannot trace this down in the example source.

I know about the existence of NSFileImmutable but is that the route to take?

Any input would be a help.

Thanks

Jonathan












_______________________________________________

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 when move open document based app file to trash
      • From: Mike Abdullah <email@hidden>
  • Prev by Date: Re: Getting at NSTextFinder from text view
  • Next by Date: Re: Crash when move open document based app file to trash
  • Previous by thread: Re: Getting at NSTextFinder from text view
  • Next by thread: Re: Crash when move open document based app file to trash
  • Index(es):
    • Date
    • Thread