PutFileDialog immediately returns kCanceledErr on mac
hi everyone,
I'm encountering an issue very similar to this old post:
AIUserSuite::PutFileDialog() works great on windows, but on mac it returns kCanceledErr immediately without waiting for user input. The code snippet below is called inside a
csxs event callback.
AppContext appContext(gPlugin->GetPluginRef());
ai::FilePath ioFilePath;
AIFileDialogFilters dlgOpts;
dlgOpts.AddFilter(ai::UnicodeString("TIFF (*.tif)"), ai::UnicodeString("*.tif"));
const ai::UnicodeString title( "Where do you want to save the exported file?" );
ai::UnicodeString defaultName;
const AIErr err = sAIUser->PutFileDialog( title, &dlgOpts, defaultName, ioFilePath );
Any insights would be greatly appreciated.
Thanks much in advance,
David