just scratching my head trying to figure out how his new juce file chooser should be used, when i realised that my confusion came from an error in the code example…
{
WildcardFileFilter wildcardFilter (T("*.foo"), T("Foo files"));
FileBrowserComponent browser (FileBrowserComponent::loadFileMode,
File::nonexistent,
&wildcardFilter,
0);
FileChooserDialogBox dialogBox (T("Open some kind of file"),
T("Please choose some kind of file that you want to open..."),
browser,
getLookAndFeel().alertWindowBackground);
if (dialogBox.show())
{
File selectedFile = dialogBox.getCurrentFile(); // <-HERE
...
}
}
that should be browser not dialogBox, right? let me know if i’m just having a remedial day…