@@ -121,10 +121,16 @@ * \return The implementation of the instance method for the specified selector * or nil if it isn't implemented */ + (IMP)instanceMethodForSelector: (SEL)selector; +/** + * \param selector The selector for which the type encoding should be returned + * \return The type encoding of the instance method for the specified selector + */ ++ (const char*)typeEncodingForInstanceSelector: (SEL)selector; + /** * Replaces a class method implementation with another implementation. * * \param newimp The new implementation for the class method * \param selector The selector of the class method to replace @@ -207,10 +213,17 @@ * * \return The implementation for the specified selector */ - (IMP)methodForSelector: (SEL)selector; +/** + * \param selector The selector for which the type encoding should be returned + * + * \return The type encoding for the specified selector + */ +- (const char*)typeEncodingForSelector: (SEL)selector; + /** * Checks two objects for equality. * * Classes containing data (like strings, arrays, lists etc.) should reimplement * this!