diff options
-rw-r--r-- | Foundation/GTMLightweightProxy.m | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/Foundation/GTMLightweightProxy.m b/Foundation/GTMLightweightProxy.m index aa2d1a1..e1cb457 100644 --- a/Foundation/GTMLightweightProxy.m +++ b/Foundation/GTMLightweightProxy.m @@ -93,11 +93,10 @@ // Checks the represented object's selectors to allow clients of the proxy to // do respondsToSelector: tests. - (BOOL)respondsToSelector:(SEL)selector { - if ([super respondsToSelector:selector] || - selector == @selector(initWithRepresentedObject:) || + if (selector == @selector(initWithRepresentedObject:) || selector == @selector(representedObject) || - selector == @selector(setRepresentedObject:)) - { + selector == @selector(setRepresentedObject:) || + [super respondsToSelector:selector]) { return YES; } |