Skip to content

Commit

Permalink
Merge pull request #79 from angelolloqui/master
Browse files Browse the repository at this point in the history
Added conformsToProtocol forward invocation to PXProxy
  • Loading branch information
Paul Colton committed Mar 17, 2014
2 parents 186abff + f5b8f4c commit 292539c
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/Core/Styling/Utils/PXProxy.m
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 292539c

Please sign in to comment.