38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
|
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
|
-
-
-
+
+
+
-
-
+
+
-
+
|
+ (instancetype)identityWithCategory: (OFString *)category
type: (OFString *)type
{
return [[[self alloc] initWithCategory: category
type: type] autorelease];
}
- initWithCategory: (OFString *)category
type: (OFString *)type
name: (OFString *)name
- (instancetype)initWithCategory: (OFString *)category
type: (OFString *)type
name: (OFString *)name
{
self = [super init];
@try {
if (category == nil || type == nil)
@throw [OFInvalidArgumentException exception];
_category = [category copy];
_name = [name copy];
_type = [type copy];
} @catch (id e) {
[self release];
@throw e;
}
return self;
}
- initWithCategory: (OFString *)category
type: (OFString *)type
- (instancetype)initWithCategory: (OFString *)category
type: (OFString *)type
{
return [self initWithCategory: category
type: type
name: nil];
}
- init
- (instancetype)init
{
OF_INVALID_INIT_METHOD
}
- (void)dealloc
{
[_category release];
|