6

When showing an NSSavePanel while the app is in 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...

Also, the panel doesn't appear and runModal returns NSFileHandlingPanelCancelButton.

The app is sandboxed. This is the code that creates the panel:

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

What might be the problem?

If the app is in the foreground the panel is shown without any error.

hpique
  • 119,096
  • 131
  • 338
  • 476

2 Answers2

6

Be sure to enable the appropriate entitlements. In this case, check that "User Selected File" is not set to "No Access".

Chris
  • 470
  • 4
  • 11
1

For the "User selected file" entitlement of the Entitlement section from Summary tab of target setting should be set to "Read/Write" access.

Ajay
  • 349
  • 3
  • 12
  • The questioner already said that it is set to read/write. http://stackoverflow.com/questions/14060214/timeout-when-showing-nssavepanel#comment19462600_14076740 – Peter Hosey Mar 19 '13 at 16:49
  • Sorry Peter Hosey, I did not observe. Even i had faced same issue, By setting "Read/Write" access its been resolved – Ajay Mar 19 '13 at 16:54