Differences From Artifact [263d460557]:
- File src/OFObject.h — part of check-in [881cfff24e] at 2012-08-03 18:45:44 on branch trunk — Add ARC type qualifiers. (user: js, size: 16807) [annotate] [blame] [check-ins using]
To Artifact [0b56356200]:
- File
src/OFObject.h
— part of check-in
[285e1138bc]
at
2012-08-03 22:37:50
on branch trunk
— Implement basic forwarding.
No need to implement it for the Apple runtime, as the Apple runtime
already tries to call these methods. (user: js, size: 17385) [annotate] [blame] [check-ins using]
︙ | ︙ | |||
475 476 477 478 479 480 481 482 483 484 485 486 487 488 | * The methods which will be added from the specified class are not allowed to * use super or access instance variables, instead they have 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. * | > > > > > > > > > > > > > > > > > > > > | 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 | * The methods which will be added from the specified class are not allowed to * use super or access instance variables, instead they have to use accessors. * * \param class The class from which the instance methods should be inherited */ + (void)inheritMethodsFromClass: (Class)class_; /** * \brief Try to resolve the specified class method. * * This method is called if a class method was not found, so that an * implementation can be provided at runtime. * * \return Whether the method has been added to the class */ + (BOOL)resolveClassMethod: (SEL)selector; /** * \brief Try to resolve the specified instance method. * * This method is called if an instance method was not found, so that an * implementation can be provided at runtime. * * \return Whether the method has been added to the class */ + (BOOL)resolveInstanceMethod: (SEL)selector; /** * \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. * |
︙ | ︙ |