Re: NSSavePanel runModal isn't working in sandbox?

2012-06-10 Thread Samuel Williams
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:

Re: NSSavePanel runModal isn't working in sandbox?

2012-06-08 Thread Samuel Williams
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

Re: NSSavePanel runModal isn't working in sandbox?

2012-06-08 Thread Corbin Dunn
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

Re: NSSavePanel runModal isn't working in sandbox?

2012-06-06 Thread Mike Abdullah
What entitlements do you have? On 6 Jun 2012, at 04:41, Samuel Williams wrote: Hi, I'm having trouble with NSSavePanel runModal in a sandbox: NSSavePanel * savePanel = [NSSavePanel savePanel]; savePanel.title = @Document Migration; savePanel.directoryURL = url;

Re: NSSavePanel runModal isn't working in sandbox?

2012-06-06 Thread Rainer Brockerhoff
On Jun 6, 2012, at 13:08 , cocoa-dev-requ...@lists.apple.com wrote: Date: Wed, 06 Jun 2012 14:50:17 +1000 From: Graham Cox graham@bigpond.com To: Samuel Williams space.ship.travel...@gmail.com Message-ID: fcd6ccc5-8c3b-4c81-b1a6-98b0c1ad1...@bigpond.com Are you aware that this class is

NSSavePanel runModal isn't working in sandbox?

2012-06-05 Thread Samuel Williams
Hi, I'm having trouble with NSSavePanel runModal in a sandbox: NSSavePanel * savePanel = [NSSavePanel savePanel]; savePanel.title = @Document Migration; savePanel.directoryURL = url; savePanel.nameFieldStringValue = [url lastPathComponent]; savePanel.allowedFileTypes = [NSArray

Re: NSSavePanel runModal isn't working in sandbox?

2012-06-05 Thread Graham Cox
Are you aware that this class is riddled with severe bugs under the current sandbox implementation? The dev forums will reveal more details. Also, NSSavePanel doesn't inherit from NSPanel under sandboxing, so if you are expecting to use inherited methods, they don't work. File bugs - we can't

Re: NSSavePanel runModal isn't working in sandbox?

2012-06-05 Thread Samuel Williams
Hi Graham, What dev forums are you talking about? NSSavePanel seems completely unusable. Even the simplest example isn't working for me: - (void) finishLaunching { [super finishLaunching]; NSSavePanel * savePanel = [NSSavePanel savePanel]; [savePanel runModal]; NSLog(@End model session for

Re: NSSavePanel runModal isn't working in sandbox?

2012-06-05 Thread Graham Cox
On 06/06/2012, at 2:55 PM, Samuel Williams wrote: Hi Graham, What dev forums are you talking about? If you are a registered apple developer, there are a number of forms at developer.apple.com, including one for sandboxing issues. The fact is that the documentation on Apple's site