• 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: NSSavePanel runModal isn't working in sandbox?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSSavePanel runModal isn't working in sandbox?


  • Subject: Re: NSSavePanel runModal isn't working in sandbox?
  • From: Samuel Williams <email@hidden>
  • Date: Mon, 11 Jun 2012 01:24:23 +1200

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 <email@hidden> wrote:

>
> On Jun 8, 2012, at 11:20 AM, Samuel Williams <
> email@hidden> 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 (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

References: 
 >Re: NSSavePanel runModal isn't working in sandbox? (From: Rainer Brockerhoff <email@hidden>)
 >Re: NSSavePanel runModal isn't working in sandbox? (From: Samuel Williams <email@hidden>)
 >Re: NSSavePanel runModal isn't working in sandbox? (From: Corbin Dunn <email@hidden>)

  • Prev by Date: Re: Color Panel oddity
  • Next by Date: Why does NSDocument not care about saving Viewer-role document types
  • Previous by thread: Re: NSSavePanel runModal isn't working in sandbox?
  • Next by thread: Animating subView moving from one superview to another (MacOS)
  • Index(es):
    • Date
    • Thread