Overview
Comment: | Rename -[replaceMethod:withMethodFromClass:] and friends. The rename was needed as these replace instance methods. |
---|---|
Downloads: | Tarball | ZIP archive | SQL archive |
Timelines: | family | ancestors | descendants | both | trunk |
Files: | files | file ages | folders |
SHA3-256: |
b156ec828405af6b5c8fc479c05c36fe |
User & Date: | js on 2010-02-24 23:00:37 |
Other Links: | manifest | tags |
Context
2010-03-04
| ||
12:28 | Add +[setImplemenation:forClassMethod:] and friends. check-in: a4b1a005b6 user: js tags: trunk | |
2010-02-24
| ||
23:00 |
Rename -[replaceMethod:withMethodFromClass:] and friends. The rename was needed as these replace instance methods. check-in: b156ec8284 user: js tags: trunk | |
22:56 | Merge to fix wrong parent of last commit. check-in: b190519866 user: js tags: trunk | |
Changes
Modified src/OFObject.h from [b67f49f2af] to [75b9a0dc79].
︙ | |||
116 117 118 119 120 121 122 | 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 | - + - - + + - + - + - - + + - - + + | * \param selector The selector for which the method should be returned * \return The implementation of the instance method for the specified selector * or nil if it isn't implemented */ + (IMP)instanceMethodForSelector: (SEL)selector; /** |
︙ |
Modified src/OFObject.m from [591acb6dd3] to [3fb2c436d1].
︙ | |||
205 206 207 208 209 210 211 | 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 | - + | return class_getMethodImplementation(self, selector); #else return method_get_imp(class_get_instance_method(self, selector)); #endif } + (IMP)setImplementation: (IMP)newimp |
︙ | |||
239 240 241 242 243 244 245 | 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 | - - + + - + | sarray_at_put_safe(((Class)self)->dtable, (sidx)method->method_name->sel_id, method->method_imp); return oldimp; #endif } |
︙ |