Differences From Artifact [250cefa1d6]:
- File
src/OFObject.h
— part of check-in
[bf0f10966f]
at
2011-07-29 21:54:36
on branch trunk
— Add +[inheritInstanceMethodsFromClass:] to OFObject.
This allows something similar to multiple inheritance. (user: js, size: 15999) [annotate] [blame] [check-ins using]
To 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]
︙ | ︙ | |||
394 395 396 397 398 399 400 | withTypeEncoding: (const char*)typeEncoding implementation: (IMP)implementation; /** * \brief Adds all instance methods from the specified class to the class that * is the receiver. * | | | > > > | 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 | withTypeEncoding: (const char*)typeEncoding implementation: (IMP)implementation; /** * \brief Adds all instance 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. * * 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)inheritInstanceMethodsFromClass: (Class)class; /** * \brief Initializes an already allocated object. |
︙ | ︙ |