upgrade to JUCE 5.4.3. Remove (probably) unused JUCE modules. Remove VST2 target (it's been end-of-life'd by Steinberg and by JUCE)
This commit is contained in:
@ -128,7 +128,7 @@ public:
|
||||
#endif
|
||||
}
|
||||
|
||||
~Native()
|
||||
~Native() override
|
||||
{
|
||||
exitModalState (0);
|
||||
removeFromDesktop();
|
||||
@ -188,6 +188,14 @@ public:
|
||||
finished (result);
|
||||
}
|
||||
|
||||
bool canModalEventBeSentToComponent (const Component* targetComponent) override
|
||||
{
|
||||
if (targetComponent == nullptr)
|
||||
return false;
|
||||
|
||||
return targetComponent->findParentComponentOfClass<FilePreviewComponent>() != nullptr;
|
||||
}
|
||||
|
||||
private:
|
||||
//==============================================================================
|
||||
#if defined (MAC_OS_X_VERSION_10_6) && MAC_OS_X_VERSION_MAX_ALLOWED >= MAC_OS_X_VERSION_10_6
|
||||
@ -202,13 +210,22 @@ private:
|
||||
|
||||
exitModalState (0);
|
||||
|
||||
if (panel != nil && result == NSFileHandlingPanelOKButton)
|
||||
if (panel != nil && result ==
|
||||
#if defined (MAC_OS_X_VERSION_10_9) && MAC_OS_X_VERSION_MAX_ALLOWED >= MAC_OS_X_VERSION_10_9
|
||||
NSModalResponseOK)
|
||||
#else
|
||||
NSFileHandlingPanelOKButton)
|
||||
#endif
|
||||
{
|
||||
auto addURLResult = [&chooserResults] (NSURL* urlToAdd)
|
||||
{
|
||||
auto scheme = nsStringToJuce ([urlToAdd scheme]);
|
||||
auto path = nsStringToJuce ([urlToAdd path]);
|
||||
chooserResults.add (URL (scheme + "://" + path));
|
||||
auto pathComponents = StringArray::fromTokens (nsStringToJuce ([urlToAdd path]), "/", {});
|
||||
|
||||
for (auto& component : pathComponents)
|
||||
component = URL::addEscapeChars (component, false);
|
||||
|
||||
chooserResults.add (URL (scheme + "://" + pathComponents.joinIntoString ("/")));
|
||||
};
|
||||
|
||||
if (isSave)
|
||||
@ -218,7 +235,7 @@ private:
|
||||
else
|
||||
{
|
||||
auto* openPanel = (NSOpenPanel*) panel;
|
||||
auto* urls = [openPanel URLs];
|
||||
auto urls = [openPanel URLs];
|
||||
|
||||
for (unsigned int i = 0; i < [urls count]; ++i)
|
||||
addURLResult ([urls objectAtIndex: i]);
|
||||
|
Reference in New Issue
Block a user