Differences From Artifact [b74fa282bf]:
- File
src/OFObject.m
— part of check-in
[7b5b0c8174]
at
2011-08-01 19:01:21
on branch trunk
— Don't use any other classes for +[inheritMethodsFromClass:].
Using other classes there would make it impossible to use
+[inheritMethodsFromClass:] in the classes being used, which would be
unfortunate as the classes that were used are potential candidates for
collection classes. (user: js, size: 28590) [annotate] [blame] [check-ins using]
To Artifact [1dc5e5a7d1]:
- File src/OFObject.m — part of check-in [e8dccdf9a9] at 2011-08-03 01:55:47 on branch trunk — D'oh... (user: js, size: 28551) [annotate] [blame] [check-ins using]
︙ | ︙ | |||
663 664 665 666 667 668 669 | for (i = 0; i < methodList->method_count; i++) { SEL selector = methodList->method_list[i].method_name; IMP implementation; /* * Don't replace methods implemented in receiving class. */ | | | | < | | 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 | for (i = 0; i < methodList->method_count; i++) { SEL selector = methodList->method_list[i].method_name; IMP implementation; /* * Don't replace methods implemented in receiving class. */ if ([self methodForSelector: selector] != [superclass methodForSelector: selector]) continue; implementation = [class methodForSelector: selector]; if ([self respondsToSelector: selector]) [self setImplementation: implementation forClassMethod: selector]; else { const char *typeEncoding = methodList->method_list[i].method_types; [self addClassMethod: selector withTypeEncoding: typeEncoding |
︙ | ︙ |