beelsebob/CoreParse — pull request #21 by aspitz (2012-10-04 14:36:15+00:00)
Title: conformsToProtocol switch

I switched CPGrammar 'conformsToProtocol' test from 'class_conformsToProtocol' to NSObjects 'conformsToProtocol' (line 77). NSObjects 'conformsToProtocol' actually takes the class hierarchy into account where 'class_conformsToProtocol' does not. This means that I can create a hierarchy of class where a root object implements the CPParseResults and any of it's children will pass the 'conformsToProtocol' test.