id<CedarDouble> newDelegate = nice_fake_for(@protocol(NSScrollViewDelegate));
subject.delegate = (id<NSScrollViewDelegate>)newDelegate;
spy_on(delegate);
newDelegate stub_method("scrollViewWillEndDragging:targetContentOffset:").with(Arguments::anything, Arguments::anything).and_return(YES);
Note that the method name of the protocol that I'm trying to stub has the following signature: scrollViewWillEndDragging:targetContentOffset: and takes in 2 arguments. The exception get thrown at the line highlighted in red. I've traced it down to the "protocol_hasSelector" method in the CDRProtocolFake.mm file and it looks like the fake defined doesn't have that method signature within its list (when I clearly have it in the list of method in my protocol). The debug description of the exception thrown is:
Attempting to stub method <scrollViewWillEndDragging:targetContentOffset:>, which double <Fake implementation of NSScrollViewDelegate protocol(s)> does not respond to
Any assistance would be greatly appreciated.
Thanks
JB
--
You received this message because you are subscribed to the Google Groups "Cedar Discussion" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cedar-discus...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.