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