OLD | NEW |
1 //------------------------------------------------------------------------------
--------- | 1 //------------------------------------------------------------------------------
--------- |
2 // $Id: OCMPassByRefSetter.m 57 2010-07-19 06:14:27Z erik $ | 2 // $Id$ |
3 // Copyright (c) 2009 by Mulle Kybernetik. See License file for details. | 3 // Copyright (c) 2009 by Mulle Kybernetik. See License file for details. |
4 //------------------------------------------------------------------------------
--------- | 4 //------------------------------------------------------------------------------
--------- |
5 | 5 |
6 #import "OCMPassByRefSetter.h" | 6 #import "OCMPassByRefSetter.h" |
7 | 7 |
8 | 8 |
9 @implementation OCMPassByRefSetter | 9 @implementation OCMPassByRefSetter |
10 | 10 |
11 - (id)initWithValue:(id)aValue | 11 - (id)initWithValue:(id)aValue |
12 { | 12 { |
13 » [super init]; | 13 » self = [super init]; |
14 value = [aValue retain]; | 14 value = [aValue retain]; |
15 return self; | 15 return self; |
16 } | 16 } |
17 | 17 |
18 - (void)dealloc | 18 - (void)dealloc |
19 { | 19 { |
20 [value release]; | 20 [value release]; |
21 [super dealloc]; | 21 [super dealloc]; |
22 } | 22 } |
23 | 23 |
24 - (id)value | 24 - (id)value |
25 { | 25 { |
26 return value; | 26 return value; |
27 } | 27 } |
28 | 28 |
29 @end | 29 @end |
OLD | NEW |