23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
|
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
|
-
-
+
+
-
-
+
+
-
-
+
+
|
@implementation OFMutableTriple
@dynamic firstObject, secondObject, thirdObject;
- (void)setFirstObject: (id)firstObject
{
id old = _firstObject;
_firstObject = [firstObject retain];
[old release];
_firstObject = objc_retain(firstObject);
objc_release(old);
}
- (void)setSecondObject: (id)secondObject
{
id old = _secondObject;
_secondObject = [secondObject retain];
[old release];
_secondObject = objc_retain(secondObject);
objc_release(old);
}
- (void)setThirdObject: (id)thirdObject
{
id old = _thirdObject;
_thirdObject = [thirdObject retain];
[old release];
_thirdObject = objc_retain(thirdObject);
objc_release(old);
}
- (id)copy
{
OFMutableTriple *copy = [self mutableCopy];
[copy makeImmutable];
|