From aae372d68c4b6b01581fe3b3df522182d428dde8 Mon Sep 17 00:00:00 2001 From: ed Date: Thu, 1 Nov 2018 09:46:20 +0000 Subject: [PATCH] Fixed a typo in the docs for JUCEApplicationBase::moreThanOneInstanceAllowed() and clarified on which platforms ::anotherInstanceStarted() will be called --- modules/juce_events/messages/juce_ApplicationBase.h | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/modules/juce_events/messages/juce_ApplicationBase.h b/modules/juce_events/messages/juce_ApplicationBase.h index d34a3fb1a6..a5f0260c4f 100644 --- a/modules/juce_events/messages/juce_ApplicationBase.h +++ b/modules/juce_events/messages/juce_ApplicationBase.h @@ -107,9 +107,11 @@ public: If your application class returns true for this, more than one instance is permitted to run (except on the Mac where this isn't possible). - If it's false, the second instance won't start, but it you will still get a + If it's false, the second instance won't start, but you will still get a callback to anotherInstanceStarted() to tell you about this - which gives you a chance to react to what the user was trying to do. + + @see anotherInstanceStarted */ virtual bool moreThanOneInstanceAllowed() = 0; @@ -151,6 +153,9 @@ public: /** Indicates that the user has tried to start up another instance of the app. This will get called even if moreThanOneInstanceAllowed() is false. + It is currently only implemented on Windows and Mac. + + @see moreThanOneInstanceAllowed */ virtual void anotherInstanceStarted (const String& commandLine) = 0;