openPanel: "Failed getting container for URL"

This line:

NSOpenPanel* panel = [NSOpenPanel openPanel];


Produces this error message:


[ERROR] Failed getting container for URL: file:///Users/oldmancoyote1/Desktop/, error: Error Domain=BRCloudDocsErrorDomain Code=12 "App library not found: 'com.apple.Desktop'" UserInfo={NSDescription=App library not found: 'com.apple.Desktop'


I just started using Sierra 10.12.1

It doesn't seem to cause a problem.

I can't find any useful references here, in stactOverflow, or on the web.


Any suggestions?


Thanks

I was running into the same errors with NSOpenPanel and discovered that it was because "iCloud Drive" was unchecked in Finder Preferences

- Derek

openPanel: "Failed getting container for URL"
 
 
Q