29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
|
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
|
-
+
|
#import "macros.h"
static struct {
Class isa;
} placeholder;
@implementation OFMutableArrayPlaceholder
@implementation OFMutableArray_placeholder
- init
{
return (id)[[OFMutableArray_adjacent alloc] init];
}
- initWithObject: (id)object
{
|
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
|
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
|
-
+
|
}
@end
@implementation OFMutableArray
+ (void)initialize
{
if (self == [OFMutableArray class])
placeholder.isa = [OFMutableArrayPlaceholder class];
placeholder.isa = [OFMutableArray_placeholder class];
}
+ alloc
{
if (self == [OFMutableArray class])
return (id)&placeholder;
|