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;
> savePanel.nameFieldStringValue = [url lastPathComponent];
> savePanel.allowedFileTypes = [NSArray arrayWithObject:typeName];
> savePanel.message = @"Your document needs to be upgraded.";
> 
> [savePanel setCanSelectHiddenExtension:YES];
> [savePanel setExtensionHidden:YES];
> 
> NSInteger result = [savePanel runModal];
> 
> if (result == NSFileHandlingPanelOKButton) {
> NSAssert(savePanel.URL != nil, @"NSSavePanel returned nil for URL");
> 
> 
> Without the sandbox, it works fine, with the sandbox, the savePanel.URL is
> nil.
> 
> Any ideas what is going on? I looked at the documentation on sandbox and it
> didn't mention anything about runModal. I'm going to try using the
> completion handler method...
> 
> Kind regards,
> Samuel
> _______________________________________________
> 
> 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/cocoadev%40mikeabdullah.net
> 
> This email sent to cocoa...@mikeabdullah.net


_______________________________________________

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

Reply via email to