Re: NSSavePanel runModal isn't working in sandbox?
Re: NSSavePanel runModal isn't working in sandbox?
- Subject: Re: NSSavePanel runModal isn't working in sandbox?
- From: Corbin Dunn <email@hidden>
- Date: Fri, 08 Jun 2012 13:48:26 -0700
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