Hi Corbin + others, I wrote up my full experience including the solution I came up with on my blog here: http://www.codeotaku.com/blog/2012-06/sandboxing-core-data-and-migrations
Please feel free to let me know if the code seems like a mistake. I filed a bug report Problem ID: 11544676: CoreData automatic migrations fail in sandbox. Problem ID: 11634243: NSSavePanel.URL is nil in sandbox Thanks to everyone for your help. Kind regards, Samuel On 9 June 2012 08:48, Corbin Dunn <corb...@apple.com> wrote: > > On Jun 8, 2012, at 11:20 AM, Samuel Williams < > space.ship.travel...@gmail.com> wrote: > > >> > >> > >> I've had no problems at all with NSSavePanel under the sandbox (the > >> inherited methods limitation that Graham mentioned excepted). > >> > >> My usage looks almost exactly like the code above except that I call > >> -beginSheetModalForWindow:completionHandler: instead of -runModal. > >> > >> BUT. You need the com.apple.security.files.user-selected.read-write > >> entitlement set to YES. > >> > >> > > Yeah, I have already set entitlements correctly. The NSPersistentDocument > > open/save are working fine. But, having issues with NSSavePanel... I > tried > > the variation with completionHandler and still had the same problem, I > also > > tried using a delegate but that also didn't seem to provide any useful > > information. > > > > Everything was working fine under a non-sandbox environment.. so its a > bit > > odd.. > > > > Maybe I could try to make a very minimal example that could be used for > > testing.. > > If you are having trouble, definitely log a bug at bugreport.apple.com > > Even if it turns out to be something you might be doing wrong, we can > update the documentation to better clarify the issue so others don't run > into it. > > thanks! > > corbin > > _______________________________________________ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) 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: https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com