I’m now building a simple UI app under Xcode 9.2 and had to raise the minimum deployment target to 10.9 to avoid deprecation warnings.
FileChooser() no longer shows any matching files for my string “my-file-.bin;my-file-.jco”. It shows all files okay if I change this to “.”.
In juce_mac_FileChooser.mm I can make it work by commenting out the first line below and using #if(0) to force use of the deprecated older code:
// #if defined (MAC_OS_X_VERSION_10_6) && (MAC_OS_X_VERSION_MIN_REQUIRED >= MAC_OS_X_VERSION_10_6)
[panel setDirectoryURL: createNSURLFromFile (directory)];
[panel setNameFieldStringValue: juceStringToNS (filename)];
if ([panel runModal] == 1 /*NSModalResponseOK*/) #else if ([panel runModalForDirectory: juceStringToNS (directory) file: juceStringToNS (filename)] == 1 /*NSModalResponseOK*/) #endif
I don’t seem to be able to debug into [panel runModal] so can’t see any deeper into this at the moment.
BTW it also fails to match any files if I only have one matching pattern “my-file-*.jco”.
For now I can change the deployment target back to 10.5 which makes it work, and put up with the deprecation warnings, but it would be nice to get a fix for this which avoids warnings.