FileChooser file patterns - search for a specific file

Reading the documentation:


This seems quite strange to me as it doens’t seem to allow me to search for a specific file. I want to open the FileChooser and look only for files named “myfilename.extenstion” But if i try to pass in the filename without any wildcards, I hit this assertion.

        // From OS X 10.6 you can only specify allowed extensions, so any filters containing wildcards
        // must be of the form "*.extension"
        jassert (filters[i] == "*"
                 || (filters[i].startsWith ("*.") && filters[i].lastIndexOfChar ('*') == 0));
        const String f (filters[i].replace ("*.", ""));

Can anyone shed some light?