• 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
Strange behavior with App Sandbox and CoreData Document
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Strange behavior with App Sandbox and CoreData Document


  • Subject: Strange behavior with App Sandbox and CoreData Document
  • From: "Marco Dall'Antonia" <email@hidden>
  • Date: Tue, 22 May 2012 19:28:41 +0200

Hi all,

I'm making some tests with a new from scratch CoreData Document based application in Mac OS X 10.7.4 with autosave enabled and Sandbox. (I must "sandboxing" an existing application for the AppStore upload).
All works fine with binary or xml type but not with SQLite.

Step 1 - I can create a new document, add some records and save it in binary, xml or SQLite format.
Step 2 - I can open a document, add or delete some records, closing the doc (autosave is on) will save the binary and xml one perfectly but not the SQLite type -> here the error log:

2012-05-22 18:27:01.481 SandboxDoc Test[311:403] Core Data: annotation: -executeRequest: encountered exception = Updating max pk failed:  with userInfo = {
    NSSQLiteErrorDomain = 14;
}

22.05.12 18:27:01.480 sandboxd: ([311]) SandboxDoc Test(311) deny file-write-create /Users/marco/Desktop/Untitled.sqlite-journal

I'm using the default "Open…" and "Save…" actions, no subclassing of openDocument or saveDocument methods so it should use the right "protected" path: ~/Library/Containers/theAppName/Data/Desktop/Untitled.sqlite

Is it a known bug or am I missing something big?
Thanks

Marco




_______________________________________________

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: NSMutableData capacity
  • Next by Date: Re: NSMutableData capacity
  • Previous by thread: Re: NSDocument autosave doesn't show as edited
  • Next by thread: Debugging uiscrollview not responding to user
  • Index(es):
    • Date
    • Thread