Differences From Artifact [5c52be14f5]:
- File src/OFObject.h — part of check-in [db5f8c2c1b] at 2011-07-31 02:07:17 on branch trunk — Implement adding methods for the GNU runtime. (user: js, size: 16444) [annotate] [blame] [check-ins using]
To Artifact [7e695cf1f5]:
- File
src/OFObject.h
— part of check-in
[fbee44d38e]
at
2011-07-31 19:45:37
on branch trunk
— Cleaner -[setImplementation:...] for old GNU runtime.
Still work needed to correctly update the dtable. (user: js, size: 17016) [annotate] [blame] [check-ins using]
︙ | ︙ | |||
374 375 376 377 378 379 380 381 382 383 384 385 386 387 | * \param selector The selector of the instance method to replace * \param class_ The class from which the new instance method should be taken * \return The old implementation */ + (IMP)replaceInstanceMethod: (SEL)selector withMethodFromClass: (Class)class_; /** * \brief Adds an instance method to the class. * * If the method already exists, nothing is done and NO is returned. If you want * to change the implementation of a method, use * setImplementation:forInstanceMethod:. * | > > > > > > > > > > > > > > > > | 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 | * \param selector The selector of the instance method to replace * \param class_ The class from which the new instance method should be taken * \return The old implementation */ + (IMP)replaceInstanceMethod: (SEL)selector withMethodFromClass: (Class)class_; /** * \brief Adds a class method to the class. * * If the method already exists, nothing is done and NO is returned. If you want * to change the implementation of a method, use * setImplementation:forClassMethod:. * * \param selector The selector for the new method * \param typeEncoding The type encoding for the new method * \param implementation The implementation for the new method * \return Whether the method has been added */ + (BOOL)addClassMethod: (SEL)selector withTypeEncoding: (const char*)typeEncoding implementation: (IMP)implementation; /** * \brief Adds an instance method to the class. * * If the method already exists, nothing is done and NO is returned. If you want * to change the implementation of a method, use * setImplementation:forInstanceMethod:. * |
︙ | ︙ |