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