Is there any tool, similar to LLVM’s static analyzer, that wil test if an Objective C class is 100% KVC compliant?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
I doubt there are many classes that are KVC compliant for all possible keys. You need to specify a particular key when you talk about KVC compliance. If you have a list of keys it’s pretty easy to test whether your class is KVC compliant for each of them, but you should also specify whether each key represents an attribute, to-one relationship, indexed to-many relationship, or unordered to-many relationship.
That said, the answer to your question as far as I’m aware is: No, there is no tool included with Xcode that tests the degree of KVC-compliance of a class. You could surely write one without too much trouble, though.