True. Pretty sure those are from different commits with different
contributors, FWIW. That second example is modeled after a very similar
method in the same class.

Thanks for looking it over.


On Tue, Jan 14, 2014 at 12:24 PM, Alexey Denisov
<notifications@github.com>wrote:

> In Source/Doubles/CDRProtocolFake.mm:
>
> > @@ -60,6 +60,16 @@ - (BOOL)respondsToSelector:(SEL)selector {
> >      return NO;
> >  }
> >
> > +- (void)doesNotRecognizeSelector:(SEL)selector {
> > +    if ([self has_rejected_method_for:selector]) {
> > +        NSString *reason = [NSString stringWithFormat:@"Received message with explicitly rejected selector <%@>", NSStringFromSelector(selector)];
> > +        [[NSException exceptionWithName:NSInvalidArgumentException reason:reason userInfo:nil] raise];
> > +    }
> > +    else {
> > +        [super doesNotRecognizeSelector:selector];
> > +    }
>
> But here you use another approach
>
> https://github.com/pivotal/cedar/pull/167/files#diff-ec959eac4de8be007a891de42dcd6f97R60
>
> —
> Reply to this email directly or view it on GitHub<https://github.com/pivotal/cedar/pull/167/files#r8874548>
> .
>