Differences From Artifact [1644680d03]:
- File src/OFObject.h — part of check-in [cace873874] at 2011-07-30 02:14:47 on branch trunk — Improve +[inheritInstanceMethodsFromClass:]. (user: js, size: 16211) [annotate] [blame] [check-ins using]
To Artifact [0f97f0d9d0]:
- File
src/OFObject.h
— part of check-in
[2828853e17]
at
2011-07-30 23:31:56
on branch trunk
— More enhancements in +[OFObject inheritMethodsFromClass:].
Inherits class and instance methods now, handles superclasses, etc. (user: js, size: 16366) [annotate] [blame] [check-ins using]
︙ | ︙ | |||
391 392 393 394 395 396 397 | * \return Whether the method has been added */ + (BOOL)addInstanceMethod: (SEL)selector withTypeEncoding: (const char*)typeEncoding implementation: (IMP)implementation; /** | | | > > > > > | | 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 | * \return Whether the method has been added */ + (BOOL)addInstanceMethod: (SEL)selector withTypeEncoding: (const char*)typeEncoding implementation: (IMP)implementation; /** * \brief Adds all methods from the specified class to the class that is the * receiver. * * Methods implemented by the receiving class itself will not be overridden, * however methods implemented by its superclass will. Therefore it behaves * similar as if the specified class is the superclass of the receiver. * * All methods from the superclasses of the specified class will also be added. * * If the specified class is a superclass of the receiving class, nothing is * done. * * The specified class may not use instance variables and has to use accessors. * * \param class The class from which the instance methods should be inherited */ + (void)inheritMethodsFromClass: (Class)class; /** * \brief Initializes an already allocated object. * * Derived classes may override this, but need to do self = [super init] before * they do any initialization themselves. init may never return nil, instead * an exception (for example OFInitializationFailed) should be thrown. |
︙ | ︙ |