From b676e3761a4d93fb10d42445b206edf10ff3fd82 Mon Sep 17 00:00:00 2001 From: Zorg Date: Sat, 6 Aug 2016 11:04:19 -0400 Subject: [PATCH] Add comments for the delegator property of SPUUpdater --- Sparkle/SPUUpdater.m | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Sparkle/SPUUpdater.m b/Sparkle/SPUUpdater.m index 9f692fad..54f5bade 100644 --- a/Sparkle/SPUUpdater.m +++ b/Sparkle/SPUUpdater.m @@ -100,6 +100,10 @@ NSString *const SUUpdaterAppcastNotificationKey = @"SUUpdaterAppCastNotification _userDriver = userDriver; _delegate = theDelegate; + + // This property can be changed by an SUUpdater instance using us to setting our delegator to itself + // This is why the updater types in the SUUpdaterDelegate are 'id' - because they can be SPUUpdater or SUUpdater + // This is not a really a big deal because using the sender type is normally bad practice, and us passing it was a regretful decision in the first place. _delegator = self; }