From f5b8f4c2fb46faf3d539bad4034923018af6fcd6 Mon Sep 17 00:00:00 2001 From: Angel Garcia Date: Mon, 17 Mar 2014 18:51:26 +0100 Subject: [PATCH] Added conformsToProtocol forward invocation to PXProxy --- src/Core/Styling/Utils/PXProxy.m | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/Core/Styling/Utils/PXProxy.m b/src/Core/Styling/Utils/PXProxy.m index 1803eb7..bda5ec0 100644 --- a/src/Core/Styling/Utils/PXProxy.m +++ b/src/Core/Styling/Utils/PXProxy.m @@ -83,6 +83,12 @@ - (BOOL)respondsToSelector:(SEL)aSelector return NO; } +- (BOOL)conformsToProtocol:(Protocol *)aProtocol { + if ([self.overridingObject conformsToProtocol:aProtocol]) return YES; + if ([self.baseObject conformsToProtocol:aProtocol]) return YES; + return NO; +} + #pragma mark - hash and equality /// make sure we look like the original object