So im getting an error trying to use the filechooser in a plugin. Someone else here had the same problem, but here it got fixed by updating and im working on the latest version already…
This is my code:
FileChooser chooser ("Choose a file", {}, "*.wav");
if (chooser.browseForFileToOpen()) {
File myFile;
auto* reader = formatManager.createReaderFor(myFile);
this is the error: objc[678]: Class FIFinderSyncExtensionHost is implemented in both /System/Library/PrivateFrameworks/FinderKit.framework/Versions/A/FinderKit (0x7fffaaa42b68) and /System/Library/PrivateFrameworks/FileProvider.framework/OverrideBundles/FinderSyncCollaborationFileProviderOverride.bundle/Contents/MacOS/FinderSyncCollaborationFileProviderOverride (0x11648fcd8). One of the two will be used. Which one is undefined. errors encountered while discovering extensions: Error Domain=PlugInKit Code=13 “query cancelled” UserInfo={NSLocalizedDescription=query cancelled}
You haven’t set myFile so formatManager.createReaderFor(myFile); will just return a nullptr which probably causes an access error if you try and do anything with. I suspect you meant to do the following: File myFile = chooser.getResult ();
I’m not sure what that error means, but I think it’s a redherring!