Hide File Extension

Is there a way to have the FileChooser save a file, with its extension hidden? Looking at the files on my Mac, all of their extensions are hidden in the Finder, but when I save a file in my synth, the extension is visible in the finder. Here’s my code:

        FileChooser myChooser (T("Save..."),
                               File::nonexistent,
                               "*");
		
        if (myChooser.browseForFileToSave(true))
        {
			        File fileToSave = myChooser.getResult().withFileExtension(".xml");
			        fileToSave.create();
        }

I guess it’s just the way OSX chooses to show the dialog. There may be some deeply-buried obscure flag to change it, but I don’t know off the top of my head.

K. Will check it out.