In Objective-C i can test wether a given class or instance responds to certain selectors. But how can query a class or instance for all its methods or properties of a class (e.g. a list of all methods or properties)?
Wether documented or not, it has to be possible as e.g. WebView
can query a plugins scriptable object for all methods and properties if they should be visible to scripts or not.