122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
|
+ (instancetype)setWithCapacity: (size_t)capacity
{
return [[[self alloc] initWithCapacity: capacity] autorelease];
}
- (instancetype)init
{
if (object_getClass(self) == [OFMutableSet class]) {
@try {
[self doesNotRecognizeSelector: _cmd];
abort();
} @catch (id e) {
[self release];
@throw e;
}
|
|
|
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
|
+ (instancetype)setWithCapacity: (size_t)capacity
{
return [[[self alloc] initWithCapacity: capacity] autorelease];
}
- (instancetype)init
{
if ([self isMemberOfClass: [OFMutableSet class]]) {
@try {
[self doesNotRecognizeSelector: _cmd];
abort();
} @catch (id e) {
[self release];
@throw e;
}
|