82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
|
- (instancetype)initWithObjects: (id const *)objects
count: (size_t)count
{
return (id)[[OFConcreteArray alloc] initWithObjects: objects
count: count];
}
- (instancetype)retain
{
return self;
}
- (instancetype)autorelease
{
return self;
}
- (void)release
{
}
- (void)dealloc
{
OF_DEALLOC_UNSUPPORTED
}
@end
@implementation OFArray
+ (void)initialize
{
if (self == [OFArray class])
object_setClass((id)&placeholder, [OFPlaceholderArray class]);
|
<
<
<
<
|
<
<
<
<
<
<
<
<
<
<
<
<
<
|
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
|
- (instancetype)initWithObjects: (id const *)objects
count: (size_t)count
{
return (id)[[OFConcreteArray alloc] initWithObjects: objects
count: count];
}
OF_SINGLETON_METHODS
@end
@implementation OFArray
+ (void)initialize
{
if (self == [OFArray class])
object_setClass((id)&placeholder, [OFPlaceholderArray class]);
|