Using File.saveDialog() to specify a default file format on MacOS
I'm writing a preset system for my plugin that saves .Json files to disk. The method I'm using is the File.saveDialog() command. In the documentation for the .saveDialog method, it mentions that for Windows users, I can specify a filter parameter that will make it save to a format of my choosing by default. However, this filter parameter doesn't work on MacOS.
So how can I specify a default file format in the save dialog on MacOS? Right now, the preset is just saving a file without any file extension...
