NSSavePanel timeout

When showing NSSavePanel when the application is in the background, I get the following error:

 RVS:__54-[NSRemoteSavePanel _runOrderingOperationWithContext:]_block_invoke_0319 : Timeout occured while waiting for the window Remote Window Controller requested NSRequestRetryActivateSharedwindow... 

In addition, the panel is not displayed and runModal returns NSFileHandlingPanelCancelButton .

The application is isolated. This is the code that the panel creates:

 NSSavePanel *panel = [NSSavePanel savePanel]; NSInteger result = [panel runModal]; if (result == NSFileHandlingPanelOKButton) { // Do something } 

What could be the problem?

If the application is in the foreground, the panel is displayed without errors.

+6
source share
2 answers

Be sure to include the appropriate rights. In this case, make sure that the “User selected file” is not set to “No access”.

+6
source

In the "User file" field, the rights of the "Rights" section of the "Summary" tab of the target parameter must be set to "Read / Write".

+1
source

All Articles