Copy link to clipboard
Copied
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
I figured this out - replying to my own question in case it helps anyone.
Turns out this has to do with (undocumented?) interaction between CEP and AIP.
In my particular case, the following sequence occurs:
What I found was that the CEP closeExtension
...Copy link to clipboard
Copied
I figured this out - replying to my own question in case it helps anyone.
Turns out this has to do with (undocumented?) interaction between CEP and AIP.
In my particular case, the following sequence occurs:
What I found was that the CEP closeExtension() call causes Illustrator to issue an abortModal() or something similar on the AIP side, causing any modal opened there to immediately close (this happens with native swift modal window, such as NSSavePanel, as well). If I keep the CEP modal open, than the PutFileDialog stays open as well.