Differences From Artifact [850b7969ab]:
- File
src/OFObject.m
— part of check-in
[139591afe1]
at
2009-04-19 20:34:38
on branch trunk
— Use isa instead of [self class].
Since we don't use Object anymore and define isa in OFObject, we can
rely on it. (user: js, size: 8214) [annotate] [blame] [check-ins using]
To Artifact [18bfba4e77]:
- File src/OFObject.m — part of check-in [6e4eb3c2ec] at 2009-04-20 01:42:49 on branch trunk — Partly revert 13945ed73147 and add testcase. (user: js, size: 8239) [annotate] [blame] [check-ins using]
︙ | ︙ | |||
107 108 109 110 111 112 113 | if (oldimp == (IMP)0 || newimp == (IMP)0) @throw [OFInvalidArgumentException newWithClass: self andSelector: _cmd]; method->method_imp = newimp; return oldimp; #else | | | | < | | 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 | if (oldimp == (IMP)0 || newimp == (IMP)0) @throw [OFInvalidArgumentException newWithClass: self andSelector: _cmd]; method->method_imp = newimp; return oldimp; #else Method method = class_getInstanceMethod(self, selector); IMP imp = class_getMethodImplementation(class, selector); if (method == NULL || imp == NULL) @throw [OFInvalidArgumentException newWithClass: self andSelector: _cmd]; return method_setImplementation(method, imp); #endif } - init { return self; } |
︙ | ︙ |