• 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: NSPersistentDocument objects "gutted" after Duplicate, Rename in 10.9
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSPersistentDocument objects "gutted" after Duplicate, Rename in 10.9


  • Subject: Re: NSPersistentDocument objects "gutted" after Duplicate, Rename in 10.9
  • From: Jerry Krinock <email@hidden>
  • Date: Mon, 29 Sep 2014 19:58:41 -0700

> On 2014 Sep 29, at 12:54, Romain Piveteau <email@hidden> wrote:
>
> I am facing the exact same crash as you in my NSPersistentDocument app.

Indeed it looks like the same to me.

I have no news on this since I reported it six months ago.  Actually, that’s good news, because my workaround, to close and reopen the document, apparently does not have any bad side effects.  Again, I think it’s probably a good workaround because an out-of-box NSPersistentDocument app will, unlike NSDocument, close and reopen the window when user clicks “Revert”.  So it’s not surprising to me at all that “Save As” requires the same hack.  In either case, Core Data needs to somehow switch SQLite to a new database file while pretending to Cocoa Bindings that nothing happened, in an operation that is rarely used and thus rarely tested.

I hope you can isolate the problem in a demo project and file a bug.  I didn’t try that hard.  Honestly, when it comes to NSPersistentDocument, since OS X 10.7, if I can find a workaround that makes some sense, I just patch it in and move on.


_______________________________________________

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


  • Prev by Date: Re: NSPersistentDocument objects "gutted" after Duplicate, Rename in 10.9
  • Next by Date: Re: view content not tracking window size
  • Previous by thread: Re: NSPersistentDocument objects "gutted" after Duplicate, Rename in 10.9
  • Next by thread: Compressing glyphs programmatically
  • Index(es):
    • Date
    • Thread