Differences From Artifact [2c81425fe1]:
- File src/OFObject.h — part of check-in [172e662b71] at 2009-06-15 19:22:16 on branch trunk — Remove whitespaces at EOL. (user: js, size: 6756) [annotate] [blame] [check-ins using]
To Artifact [f2a66cf4f4]:
- File
src/OFObject.h
— part of check-in
[67bb344ba6]
at
2009-06-30 12:07:21
on branch trunk
— A few renames in OFObject, see details.
* +[conformsTo:] to +[conformsToProtocol:].
* -[isKindOf:] to -[isKindOfClass:].
* -[respondsTo:] to -[respondsToSelector:].
* -[conformsTo:] to -[conformsToProtocol:].
* -[methodFor:] to -[methodForSelector:]. (user: js, size: 6793) [annotate] [blame] [check-ins using]
︙ | ︙ | |||
54 55 56 57 58 59 60 | + (const char*)name; /** * \param protocol The protocol which should be checked for conformance * * \return A boolean whether the class conforms to the specified protocol */ | | | 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 | + (const char*)name; /** * \param protocol The protocol which should be checked for conformance * * \return A boolean whether the class conforms to the specified protocol */ + (BOOL)conformsToProtocol: (Protocol*)protocol; /** * Replace a method implementation with another implementation. * * \param selector The selector of the method to replace * \param imp The new implementation for the method * \return The old implementation |
︙ | ︙ | |||
103 104 105 106 107 108 109 | - (const char*)name; /** * \param class The class whose kind is checked * * \return A boolean whether the object is of the specified kind */ | | | | | | 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 | - (const char*)name; /** * \param class The class whose kind is checked * * \return A boolean whether the object is of the specified kind */ - (BOOL)isKindOfClass: (Class)class; /** * \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; /** * \param protocol The protocol which should be checked for conformance * * \return A boolean whether the objects conforms to the specified protocol */ - (BOOL)conformsToProtocol: (Protocol*)protocol; /** * \param selector The selector for which the method should be returned * * \return The implementation for the specified selector */ - (IMP)methodForSelector: (SEL)selector; /** * Compare two objects. * Classes containing data (like strings, arrays, lists etc.) should reimplement * this! * * \param obj The object which is tested for equality |
︙ | ︙ |