Index: src/OFObject.h ================================================================== --- src/OFObject.h +++ src/OFObject.h @@ -119,10 +119,34 @@ * \param selector The selector which should be checked for respondance * \return A boolean whether the objects responds to the specified selector */ - (BOOL)respondsToSelector: (SEL)selector; +/** + * \brief Checks whether the object conforms to the specified protocol. + * + * \param protocol The protocol which should be checked for conformance + * \return A boolean whether the object conforms to the specified protocol + */ +- (BOOL)conformsToProtocol: (Protocol*)protocol; + +/** + * \brief Returns the implementation for the specified selector. + * + * \param selector The selector for which the method should be returned + * \return The implementation for the specified selector + */ +- (IMP)methodForSelector: (SEL)selector; + +/** + * \brief Returns the type encoding for the specified 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; + /** * \brief Performs the specified selector. * * \param selector The selector to perform * \return The object returned by the method specified by the selector @@ -446,34 +470,10 @@ * * \return The name of the object's class */ - (OFString*)className; -/** - * \brief Checks whether the object conforms to the specified protocol. - * - * \param protocol The protocol which should be checked for conformance - * \return A boolean whether the object conforms to the specified protocol - */ -- (BOOL)conformsToProtocol: (Protocol*)protocol; - -/** - * \brief Returns the implementation for the specified selector. - * - * \param selector The selector for which the method should be returned - * \return The implementation for the specified selector - */ -- (IMP)methodForSelector: (SEL)selector; - -/** - * \brief Returns the type encoding for the specified 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; - /** * \brief Returns a description for the object. * * This is mostly for debugging purposes. *