I have seen examples of Objective-C code apparently doing the same/similar checks using different methods. I want to learn what’s the difference in these:
isKindOfClass
isMemberOfClass
isSubclassOfClass
Please also mention if there is a check that I have not mentioned here, because I am learning and have a very poor command at things at the moment.
There are so many link on google and specially it has been asked on stackoverflow many times, check my added link in comment and,
iPhone SDK difference between isKindOfClass and isMemberOfClass
Try reading their documentation as well, that will help you a lot.
Edited
Lets say you have a class name
Externaland insideExternalclass you have a subclass namedInternal. I hope you have idea about class can have a subclass which can access properties of a main class. so by this method you can ask anInternalclass that , Are you a subclass of External class?And return value will be
BOOLotherwise NO.
More reading is available on documentation website of Apple
http://developer.apple.com/library/mac/#documentation/Cocoa/Reference/Foundation/Classes/NSObject_Class/Reference/Reference.html