markcarver/Sparkle — comment on commit 3f1d59343168237e760951cb6026b26b8a6f9b34
File:  line 0
By markcarver:

see: https://github.com/mstratman/cocoadialog/commit/d250170010b32f4c11a04fbc11f23072ea193ba8#diff-38

On line 36 is where the `update` method actually utilizes Sparkle. So when the script uses `cocoaDialog update` it will use `[updater checkForUpdates:nil]` or if the `--quiet` argument was appended, then it will use `[updater checkForUpdatesInBackground]`.

The latter does indeed wait for the application to wait. However, that is not great for cocoaDialog because of how we utilize the control (in this case, Sparkle) to determine when cocoaDialog should quit.

`updaterShouldPromptInstall:` is probably not what it should be named. I did this to give my delegate the ability to tell Sparkle that it should bypass the background wait and alert dialogs and simply install the update automatically, which then exits.