I have to read this by saying that I came from a Java / Android background that colored my understanding of the word “member”. However, I am starting to learn Objective-C, and I came across the isMemberOfClass method, and that confuses me.
I understand that isMemberOfClass returns a boolean value indicating whether the receiver is an instance of this class. However, I do not understand why it is called isMEMBER when it checks if it is INSTANCE.
Is there anything about the language protocol that I don’t know that it makes sense to call it that? Does the element have something different in Objective-C than in Java?
As I understand the definition of a member, this is something of a HAS class (method or data), and not something like an IS class (type).
Can anyone clear this seemingly strange naming convention for me? Thanks for helping the newbie!
source share