In showPlatformDialog there is the following:
#if defined (MAC_OS_X_VERSION_10_6) && MAC_OS_X_VERSION_MAX_ALLOWED >= MAC_OS_X_VERSION_10_6 [panel setDirectoryURL: [NSURL fileURLWithPath: juceStringToNS (directory)]]; [panel setNameFieldStringValue: juceStringToNS (filename)]; if ([panel runModal] == NSOKButton) #else if ([panel runModalForDirectory: juceStringToNS (directory) file: juceStringToNS (filename)] == NSOKButton) #endif
But it seems like the first line should be:
#if defined (MAC_OS_X_VERSION_10_6) && MAC_OS_X_VERSION_MIN_ALLOWED >= MAC_OS_X_VERSION_10_6
Otherwise, the dialog won’t appear when building for, say, 10.5 with the newer SDK, since setDirectoryURL will throw an uncaught exception.