Let's say I have 2 instances of Person class. One named john and one mary. The Person class has 2 properties age and gender. Is there a way to make an iteration thorough all the instances' properties and check if the current property is equal to a given property? Something like this:
for (iterate thorough all properties of instance mary) {
//first iteration
@selector(mary.age)==@selector(john.age) //this would be YES;
//second iteration
@selector(mary.gender)==@selector(john.age) //this would be NO;
}