I\'m working in Objective-C on the iPhone and need to know whether a \'Class\' inherits from \'NSObject\'.
I tried checking if it responds to an NSObject selector:>
respondsToSelector:
is itself an NSObject-defined selector, so you can't use it. I don't believe there's a way to do this without getting very deep into the internals of Objective-C.
May I ask why you have objects that aren't descendants of NSObject? Apple very strongly recommends you don't attempt to create them, and with good reason.