• 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 Migration with Sandbox
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSPersistentDocument Migration with Sandbox


  • Subject: Re: NSPersistentDocument Migration with Sandbox
  • From: Jim McGowan <email@hidden>
  • Date: Fri, 10 May 2013 14:26:47 +0800

On  9 May, 2013, at 1:56:29 PM HKT, Jerry Krinock <email@hidden> wrote:
>
>> sandboxd gives this message on the console:
>>
>> deny file-write-create /Users/jimmcgowan/Desktop/.AGPS Examples.rtd.migrationdestination_41b5a6b5c6e848c462a8480cd24caef3
>
> I've never worked with a sandboxed document, but the above error says that Core Data is attempting to write to the regular Desktop, which of course is not allowed in the sandbox.  It shouldn't be doing that, unless your document was on the regular Desktop to begin with.

The original document was on the desktop.  A user could have their documents anywhere.

> The question is: "Why is Core Data trying to create a file on the regular Desktop?"
>

The document in the old format that this particular test used was located at ~/Desktop/AGPS Examples.rtd  After migration, core data tries to write the store to ~/Desktop/.AGPS Examples.rtd.migrationdestination_41b5a6b5c6e848c462a8480cd24caef3  The docs mention writing to a file with  '~' suffix, but this doesn't happen (unless writing to the path above is an intermediary step, but the docs make no mention of this).

Core Data document migration will try to write the migrated store to the same directory as the original, but the sandbox blocks this.  So, does anyone know of any workaround?

Jim
_______________________________________________

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: NSPersistentDocument Migration with Sandbox
      • From: Jerry Krinock <email@hidden>
  • Prev by Date: Re: how to run NSApplicationMain() in child process?
  • Next by Date: Re: how to run NSApplicationMain() in child process?
  • Previous by thread: Re: NSPersistentDocument Migration with Sandbox
  • Next by thread: Re: NSPersistentDocument Migration with Sandbox
  • Index(es):
    • Date
    • Thread