Remove adopted protocol from protocols used for XPC

This is because XPC decoders on older systems may not traverse adopted protocols
This commit is contained in:
Zorg committed 2016-08-11 20:58:19 -04:00
1 parent f7d1cab4a0
commit a51edf3dad
2 files changed
+8 -5

No files matched your search

@@ -11,9 +11,10 @@
NS_ASSUME_NONNULL_BEGIN
@protocol SUInstallerConnectionProtocol <SUInstallerCommunicationProtocol>
@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;
+5 -3
View File
@@ -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 <SUStatusInfoProtocol>
@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;