warning delegate fixes
This commit is contained in:
parent
12924790f7
commit
193497132e
@ -74,7 +74,11 @@
|
|||||||
|
|
||||||
- (void)setDelegate:(NSObject<MVMCoreLoadDelegateProtocol,MVMCorePresentationDelegateProtocol,MVMCoreActionDelegateProtocol> *)delegate {
|
- (void)setDelegate:(NSObject<MVMCoreLoadDelegateProtocol,MVMCorePresentationDelegateProtocol,MVMCoreActionDelegateProtocol> *)delegate {
|
||||||
_delegate = delegate;
|
_delegate = delegate;
|
||||||
|
if ([delegate respondsToSelector:@selector(delegateObject)]) {
|
||||||
|
_delegateObject = [delegate performSelector:@selector(delegateObject)];
|
||||||
|
} else {
|
||||||
_delegateObject = [DelegateObject createWithDelegateForAll:delegate];
|
_delegateObject = [DelegateObject createWithDelegateForAll:delegate];
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
- (nullable instancetype)initWithPageJSON:(nullable NSDictionary *)pageJSON modulesJSON:(nullable NSDictionary *)modulesJSON requestParameters:(nullable MVMCoreRequestParameters *)requestParameters dataForPage:(nullable NSDictionary *)dataForPage delegate:(nullable NSObject<MVMCoreLoadDelegateProtocol,MVMCorePresentationDelegateProtocol,MVMCoreActionDelegateProtocol>*)delegate {
|
- (nullable instancetype)initWithPageJSON:(nullable NSDictionary *)pageJSON modulesJSON:(nullable NSDictionary *)modulesJSON requestParameters:(nullable MVMCoreRequestParameters *)requestParameters dataForPage:(nullable NSDictionary *)dataForPage delegate:(nullable NSObject<MVMCoreLoadDelegateProtocol,MVMCorePresentationDelegateProtocol,MVMCoreActionDelegateProtocol>*)delegate {
|
||||||
|
|||||||
@ -908,7 +908,11 @@
|
|||||||
|
|
||||||
- (void)setDelegate:(NSObject<MVMCoreLoadDelegateProtocol,MVMCorePresentationDelegateProtocol,MVMCoreActionDelegateProtocol> *)delegate {
|
- (void)setDelegate:(NSObject<MVMCoreLoadDelegateProtocol,MVMCorePresentationDelegateProtocol,MVMCoreActionDelegateProtocol> *)delegate {
|
||||||
_delegate = delegate;
|
_delegate = delegate;
|
||||||
|
if ([delegate respondsToSelector:@selector(delegateObject)]) {
|
||||||
|
_delegateObject = [delegate performSelector:@selector(delegateObject)];
|
||||||
|
} else {
|
||||||
_delegateObject = [DelegateObject createWithDelegateForAll:delegate];
|
_delegateObject = [DelegateObject createWithDelegateForAll:delegate];
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
- (nullable instancetype)initWithRequestParameters:(nullable MVMCoreRequestParameters *)requestParameters dataForPage:(nullable NSDictionary *)dataForPage delegate:(nullable NSObject<MVMCoreLoadDelegateProtocol,MVMCorePresentationDelegateProtocol,MVMCoreActionDelegateProtocol>*)delegate backgroundLoad:(BOOL)backgroundLoad {
|
- (nullable instancetype)initWithRequestParameters:(nullable MVMCoreRequestParameters *)requestParameters dataForPage:(nullable NSDictionary *)dataForPage delegate:(nullable NSObject<MVMCoreLoadDelegateProtocol,MVMCorePresentationDelegateProtocol,MVMCoreActionDelegateProtocol>*)delegate backgroundLoad:(BOOL)backgroundLoad {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user