From c882da7bc723ea2b1fcd2162f28e03cf31e0d0bd Mon Sep 17 00:00:00 2001 From: Zorg Date: Sun, 2 May 2021 16:06:22 -0700 Subject: [PATCH] Update documentation for -bestValidUpdateInAppcast --- Sparkle/SPUUpdaterDelegate.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Sparkle/SPUUpdaterDelegate.h b/Sparkle/SPUUpdaterDelegate.h index 76792e50..c15416fc 100644 --- a/Sparkle/SPUUpdaterDelegate.h +++ b/Sparkle/SPUUpdaterDelegate.h @@ -167,6 +167,11 @@ typedef NS_ENUM(NSInteger, SPUUpdateCheck) implement this to use your own logic for finding a valid update, if any, in the given appcast. + Do not base your logic by filtering out items with a minimum or maximum OS or application system version, + because Sparkle already has logic for determining whether or not those items should be filtered out. + + This method may be called multiple times for different selections and filters. This method should be efficient. + \param appcast The appcast that was downloaded from the remote server. \param updater The updater instance. \return The best valid appcast item, or nil if you don't want to be delegated this task.