Runtime class info in ObjC/Cocoa
Runtime class info in ObjC/Cocoa
- Subject: Runtime class info in ObjC/Cocoa
- From: Luc Heinrich <email@hidden>
- Date: Fri, 27 Jul 2001 18:03:34 +0200
Hi,
Is there a way, in Objective-C in general and/or in Cocoa specifically,
to discover at runtime the methods that a particular class/instance
implements ?
In Java, you just have to do that:
Method[] methodList = someClass.getMethods();
Is there anything similar in ObjC/Cocoa ? Something that could give me
back a SEL list, which I could then put into the magic
'NSStringFromSelector' thingy, for example... I had a look at the
NSObject class, and various objc runtime headers, but I did not found
something that could help.
Any clue ? Thanks.
--
Luc - email@hidden