27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
|
- (instancetype)initWithNSArray: (NSArray *)array
{
self = [super init];
@try {
if (array == nil)
@throw [OFInitializationFailedException
exceptionWithClass: [self class]];
_array = [array retain];
} @catch (id e) {
[self release];
@throw e;
}
|
|
|
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
|
- (instancetype)initWithNSArray: (NSArray *)array
{
self = [super init];
@try {
if (array == nil)
@throw [OFInitializationFailedException
exceptionWithClass: self.class];
_array = [array retain];
} @catch (id e) {
[self release];
@throw e;
}
|
55
56
57
58
59
60
61
62
63
64
|
return [object OFObject];
return object;
}
- (size_t)count
{
return [_array count];
}
@end
|
|
|
55
56
57
58
59
60
61
62
63
64
|
return [object OFObject];
return object;
}
- (size_t)count
{
return _array.count;
}
@end
|