Add comments for the delegator property of SPUUpdater

This commit is contained in:
Zorg committed 2016-08-06 11:04:19 -04:00
1 parent a303859f10
commit b676e3761a
1 file changed
+4
+4
View File
@@ -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;
}