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.
Be sure to enable the appropriate entitlements. In this case, check that "User Selected File" is not set to "No Access".
For the "User selected file" entitlement of the Entitlement section from Summary tab of target setting should be set to "Read/Write" access.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With