There are numerous oblique references to the abitlity to examine Objective-C instances and classes at runtime to determine specifics about their nature (such as their name and a list of the methods/selectors defined), but I can find no specific details on this. All of the examples use "isa" or "respondsToSelector", which require that my code know what I am looking for first.
What I want is, given the name of a class or an object instance of that class, to be able to print out the name of the class (actually found that in the "description" method/selector), a list of the data members, complete with their name and type, and a list if the defined selectors, along with their name, type, parameters, and scope (private, etc.). If all I can examine is public information, OK for now, but I can find no specific details on how to do this at all.
Help!
What I want is, given the name of a class or an object instance of that class, to be able to print out the name of the class (actually found that in the "description" method/selector), a list of the data members, complete with their name and type, and a list if the defined selectors, along with their name, type, parameters, and scope (private, etc.). If all I can examine is public information, OK for now, but I can find no specific details on how to do this at all.
Help!