[Mono-osx] AppStore Sandboxing

Curtis Wensley curtis.wensley at gmail.com
Wed Feb 22 00:48:28 UTC 2012

Yeah, this is one of the ways to access files (others are the recently used files list, and dragging files onto the app icon).

I wasn't too clear - it's not that they don't work in a sandbox environment, they just currently do not work in MonoMac in a sandbox, since they derive from NSPanel/NSWindow, whereas in a sandboxed environment, they do not.

Theoretically you can create your own NSSavePanel/NSOpenPanel bindings that just pull in the methods that you need and are accessible via sandbox, at least until the mono team gets around to building this into the base stuff.

Hope this helps!

On 2012-02-21, at 4:43 PM, Mark Lakewood wrote:

> In relation to the NSOpenPanel and NSSavePanel, I thought this was the only way to access files and directories out of the sandbox.
> In your experience if im building an app to copy files, would this be disallowed in the new sandboxed environment?
> On 22 February 2012 08:04, Curtis Wensley <curtis.wensley at gmail.com> wrote:
> I did some investigation on this, and submitted a few bug reports:
> https://bugzilla.xamarin.com/show_bug.cgi?id=3490 and
> https://bugzilla.xamarin.com/show_bug.cgi?id=3491
> I was able to successfully build a sandboxed MonoMac app (by code signing
> manually, see script on second bug's attachment).
> The only issue I ran into was using the NSOpenPanel and NSSavePanel, which
> currently don't work in a sandboxed environment.
> Hope this helps!
> Curtis.
> --
> View this message in context: http://mono.1490590.n4.nabble.com/AppStore-Sandboxing-tp4408557p4408793.html
> Sent from the Mono - OSX mailing list archive at Nabble.com.
> _______________________________________________
> Mono-osx mailing list
> Mono-osx at lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/mono-osx

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ximian.com/pipermail/mono-osx/attachments/20120221/d6197672/attachment.html>

More information about the Mono-osx mailing list