Forums > Dev

saveas_promptset() not working on mac

December 9, 2013 | 9:58 am

I’m coding a C external that wants to be able to save its own binary files. I’m using saveas_promptset() to try to show some text in the save dialog. It works on Windows, but the prompt text doesn’t show up on Mac. The dialog always just says "Save" in the titlebar. Here’s the relevant code:

char filename[MAX_PATH_CHARS];
short path;
t_fourcc typeChosen;
t_fourcc typeList = ‘EzQp’;

strcpy(filename, x->presetName);
strcat(filename, ".ezqpreset");

saveas_promptset("Save your EzQ® Preset File");
if (saveasdialog_extended(filename, &path, &typeChosen, &typeList, 1))
return;

Tested on:

  • Mac 1 (doesn’t work): OS X 10.6.8, Max 6.1.5, compiled with SDK 6.1.1, Xcode 3.2.6
  • Mac 2 (doesn’t work): OS X 10.8.5, Max 6.1.5, Max runtime 6.1.5, compiled with SDK 6.1.4, Xcode 5.0.2
  • Win (works): XP SP3, Max Runtime 6.1.5, compiled with SDK 6.1.1, Visual C++ 2010 Express

Does this feature just not work on Mac? Thanks!


Viewing 1 post (of 1 total)