diff --git a/InstallerConnection/SUInstallerConnectionProtocol.h b/InstallerConnection/SUInstallerConnectionProtocol.h index 61bb80de..cbba5f57 100644 --- a/InstallerConnection/SUInstallerConnectionProtocol.h +++ b/InstallerConnection/SUInstallerConnectionProtocol.h @@ -11,9 +11,10 @@ NS_ASSUME_NONNULL_BEGIN -@protocol SUInstallerConnectionProtocol +@protocol SUInstallerConnectionProtocol -// This method is declared in SUInstallerCommunicationProtocol too, but the XPC decoder on macOS 10.8 doesn't know that +// This method is declared in SUInstallerCommunicationProtocol too +// the XPC decoder on macOS 10.8 doesn't follow protocols that adopt other protocols, which is why this protocol doesn't adopt SUInstallerCommunicationProtocol - (void)handleMessageWithIdentifier:(int32_t)identifier data:(NSData *)data; - (void)setInvalidationHandler:(void (^)(void))invalidationHandler; diff --git a/InstallerStatus/SUInstallerStatusProtocol.h b/InstallerStatus/SUInstallerStatusProtocol.h index bc7c2d88..12db3692 100644 --- a/InstallerStatus/SUInstallerStatusProtocol.h +++ b/InstallerStatus/SUInstallerStatusProtocol.h @@ -12,12 +12,14 @@ NS_ASSUME_NONNULL_BEGIN // The protocol that this service will vend as its API. This header file will also need to be visible to the process hosting the service. -@protocol SUInstallerStatusProtocol +@protocol SUInstallerStatusProtocol -// Even though this is declared in SUStatusInfoProtocol, we should declare it here because macOS 10.8 doesn't traverse adopted protocols +// Even though this is declared in SUStatusInfoProtocol, we should declare it here because macOS 10.8 doesn't traverse adopted protocols, +// which is why this protocol doesn't adopt SUStatusInfoProtocol - (void)probeStatusInfoWithReply:(void (^)(NSData * _Nullable installationInfoData))reply; -// Even though this is declared in SUStatusInfoProtocol, we should declare it here because macOS 10.8 doesn't traverse adopted protocols +// Even though this is declared in SUStatusInfoProtocol, we should declare it here because macOS 10.8 doesn't traverse adopted protocols, +// which is why this protocol doesn't adopt SUStatusInfoProtocol - (void)probeStatusConnectivityWithReply:(void (^)(void))reply; - (void)setInvalidationHandler:(void (^)(void))invalidationHandler;